@samitouri / QOS-React / commits / 97757ea988

[hir] Run SSA pass before InferReferenceEffects pass

Sathya Gunasekaran committed Oct 27, 2022 at 15:16 UTC 97757ea988e04aaded1c2ddd016bf9a9b293ecfb
1 file changed +1 -1
compiler/forget/src/__tests__/hir-test.ts
+1 -1
@@ -47,10 +47,10 @@ describe("React Forget (HIR version)", () => {
47 enter(nodePath) {
48 const env: Environment = new Environment();
49 const ir: HIRFunction = lower(nodePath, env);
50 - inferReferenceEffects(ir);
50 if (file.startsWith("ssa")) {
51 buildSSA(ir, env);
52 }
53 + inferReferenceEffects(ir);
54 // const lifetimeGraph = buildDefUseGraph(ir);
55 const textHIR = printHIR(ir.body);
56 // const textLifetimeGraph = printGraph(lifetimeGraph);