mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[aliasing] Alias object loads to it's lvalue as well
This doesn't change codegen as the lvalue is unused but it lets us make this pass be semantically the same across all instructions -- "alias lvalue and operands of an instr".
This commit is contained in:
1 parent
018899d778
commit
40f304392e
1 file changed
+2
-1
@@ -44,7 +44,8 @@ export function inferAliasForStores(
|
||||
}
|
||||
case "ComputedStore":
|
||||
case "PropertyStore": {
|
||||
maybeAlias(aliases, value.object, value.value, instr.id);
|
||||
maybeAlias(aliases, lvalue.place, value.value, instr.id);
|
||||
maybeAlias(aliases, lvalue.place, value.object, instr.id);
|
||||
break;
|
||||
}
|
||||
case "FunctionExpression": {
|
||||
|
||||
Reference in new issue
Block a user