mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
s/SSAify/Enter SSA/
Rename this existing pass to make more sense with the next PR
This commit is contained in:
@@ -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<BasicBlock> = new Set();
|
||||
const builder = new SSABuilder(env);
|
||||
for (const [blockId, block] of func.body.blocks) {
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user