diff --git a/compiler/forget/src/HIR/SSAify.ts b/compiler/forget/src/HIR/EnterSSA.ts similarity index 99% rename from compiler/forget/src/HIR/SSAify.ts rename to compiler/forget/src/HIR/EnterSSA.ts index c9e8701771..9354a1c91b 100644 --- a/compiler/forget/src/HIR/SSAify.ts +++ b/compiler/forget/src/HIR/EnterSSA.ts @@ -169,7 +169,7 @@ class SSABuilder { } } -export default function buildSSA(func: HIRFunction, env: Environment) { +export default function enterSSA(func: HIRFunction, env: Environment) { const visitedBlocks: Set = new Set(); const builder = new SSABuilder(env); for (const [blockId, block] of func.body.blocks) { diff --git a/compiler/forget/src/__tests__/hir-test.ts b/compiler/forget/src/__tests__/hir-test.ts index 43fcb8c913..80b68a7c14 100644 --- a/compiler/forget/src/__tests__/hir-test.ts +++ b/compiler/forget/src/__tests__/hir-test.ts @@ -17,12 +17,12 @@ import prettier from "prettier"; import { lower } from "../HIR/BuildHIR"; import codegen from "../HIR/Codegen"; import { eliminateRedundantPhi } from "../HIR/EliminateRedundantPhi"; +import enterSSA from "../HIR/EnterSSA"; import { HIRFunction } from "../HIR/HIR"; import { Environment } from "../HIR/HIRBuilder"; import { inferMutableRanges } from "../HIR/InferMutableLifetimes"; import inferReferenceEffects from "../HIR/InferReferenceEffects"; import printHIR from "../HIR/PrintHIR"; -import buildSSA from "../HIR/SSAify"; import generateTestsFromFixtures from "./test-utils/generateTestsFromFixtures"; function wrapWithTripleBackticks(s: string, ext?: string) { @@ -64,7 +64,7 @@ describe("React Forget (HIR version)", () => { enter(nodePath) { const env: Environment = new Environment(); const ir: HIRFunction = lower(nodePath, env); - buildSSA(ir, env); + enterSSA(ir, env); eliminateRedundantPhi(ir); inferReferenceEffects(ir); inferMutableRanges(ir);