[hir] Run SSA pass before InferReferenceEffects pass

This commit is contained in:
Sathya Gunasekaran
2022-10-27 15:16:49 +01:00
parent 6b9f07624f
commit 97757ea988
+1 -1
View File
@@ -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);