mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[hir] Run SSA pass before InferReferenceEffects pass
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user