From 97757ea988e04aaded1c2ddd016bf9a9b293ecfb Mon Sep 17 00:00:00 2001 From: Sathya Gunasekaran Date: Thu, 27 Oct 2022 15:16:49 +0100 Subject: [PATCH] [hir] Run SSA pass before InferReferenceEffects pass --- compiler/forget/src/__tests__/hir-test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/forget/src/__tests__/hir-test.ts b/compiler/forget/src/__tests__/hir-test.ts index 4e4b07233a..0bc636ce16 100644 --- a/compiler/forget/src/__tests__/hir-test.ts +++ b/compiler/forget/src/__tests__/hir-test.ts @@ -47,10 +47,10 @@ describe("React Forget (HIR version)", () => { enter(nodePath) { const env: Environment = new Environment(); const ir: HIRFunction = lower(nodePath, env); - inferReferenceEffects(ir); if (file.startsWith("ssa")) { buildSSA(ir, env); } + inferReferenceEffects(ir); // const lifetimeGraph = buildDefUseGraph(ir); const textHIR = printHIR(ir.body); // const textLifetimeGraph = printGraph(lifetimeGraph);