@samitouri / QOS-React-1 / commits / adfae63f20

[hir] Remove unnecessary rewrite of instr.lvalue

The for loop over eachInstructionLValue already rewrites instr.lvalue: ``` for (const place of eachInstructionLValue(instr)) { rewritePlace(place, rewrites); } ```

Sathya Gunasekaran committed Aug 7, 2023 at 13:41 UTC adfae63f208b1e8e98c1923a2ac8e26686173253
1 file changed -3
compiler/forget/packages/babel-plugin-react-forget/src/SSA/EliminateRedundantPhi.ts
-3
@@ -112,9 +112,6 @@ export function eliminateRedundantPhi(
112 rewritePlace(place, rewrites);
113 }
114 }
115 -
116 - rewritePlace(instr.lvalue, rewrites);
117 -
115 // visit function expressions on first iteration of each block
116 if (
117 isFirstIteration &&