s/SSAify/Enter SSA/
Rename this existing pass to make more sense with the next PR
Lauren Tan committed
Nov 7, 2022 at 18:34 UTC
f8f4dc4b8b044b9e6ceaa106e5a7667c2fdd308d
2 files changed
+3
-3
compiler/forget/src/HIR/EnterSSA.ts
renamed
+1
-1
@@ -169,7 +169,7 @@ class SSABuilder {
169
}
170
}
171
172
-export default function buildSSA(func: HIRFunction, env: Environment) {
172
+export default function enterSSA(func: HIRFunction, env: Environment) {
173
const visitedBlocks: Set<BasicBlock> = new Set();
174
const builder = new SSABuilder(env);
175
for (const [blockId, block] of func.body.blocks) {
compiler/forget/src/__tests__/hir-test.ts
+2
-2
@@ -17,12 +17,12 @@ import prettier from "prettier";
17
import { lower } from "../HIR/BuildHIR";
18
import codegen from "../HIR/Codegen";
19
import { eliminateRedundantPhi } from "../HIR/EliminateRedundantPhi";
20
+import enterSSA from "../HIR/EnterSSA";
21
import { HIRFunction } from "../HIR/HIR";
22
import { Environment } from "../HIR/HIRBuilder";
23
import { inferMutableRanges } from "../HIR/InferMutableLifetimes";
24
import inferReferenceEffects from "../HIR/InferReferenceEffects";
25
import printHIR from "../HIR/PrintHIR";
25
-import buildSSA from "../HIR/SSAify";
26
import generateTestsFromFixtures from "./test-utils/generateTestsFromFixtures";
27
28
function wrapWithTripleBackticks(s: string, ext?: string) {
@@ -64,7 +64,7 @@ describe("React Forget (HIR version)", () => {
64
enter(nodePath) {
65
const env: Environment = new Environment();
66
const ir: HIRFunction = lower(nodePath, env);
67
- buildSSA(ir, env);
67
+ enterSSA(ir, env);
68
eliminateRedundantPhi(ir);
69
inferReferenceEffects(ir);
70
inferMutableRanges(ir);