Add LeaveSSA pass to DumpHIRPass
Lauren Tan committed
Nov 9, 2022 at 17:31 UTC
90aa627c6b563a79b56737bb0c3c0a7970483074
1 file changed
+4
-2
compiler/forget/src/HIR/DumpHIRPass.ts
+4
-2
@@ -12,12 +12,13 @@ import { OutputKind } from "../CompilerOutputs";
12
import { PassKind, PassName } from "../Pass";
13
14
import { lower } from "../HIR/BuildHIR";
15
-import enterSSA from "../HIR/EnterSSA";
15
import { eliminateRedundantPhi } from "../HIR/EliminateRedundantPhi";
16
+import enterSSA from "../HIR/EnterSSA";
17
+import { inferMutableRanges } from "../HIR/InferMutableLifetimes";
18
import inferReferenceEffects from "../HIR/InferReferenceEffects";
19
import printHIR from "../HIR/PrintHIR";
19
-import { inferMutableRanges } from "../HIR/InferMutableLifetimes";
20
import { Environment } from "./HIRBuilder";
21
+import leaveSSA from "./LeaveSSA";
22
23
export default {
24
name: PassName.DumpHIR,
@@ -43,6 +44,7 @@ export function run(program: NodePath<t.Program>, context: CompilerContext) {
44
eliminateRedundantPhi(ir);
45
inferReferenceEffects(ir);
46
inferMutableRanges(ir);
47
+ leaveSSA(ir);
48
const textHIR = printHIR(ir.body);
49
results.push(textHIR);
50
} catch (e) {