[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:
Sathya Gunasekaran
2023-02-02 17:41:31 +00:00
parent 018899d778
commit 40f304392e
@@ -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": {