Skip to content

Commit 7deda94

Browse files
authored
[compiler] Delete PropagatePhiTypes (facebook#34107)
We moved this logic into InferTypes a long time ago and the PRs to clean it up keep getting lost in the shuffle.
1 parent d3b26b2 commit 7deda94

File tree

2 files changed

+0
-118
lines changed

2 files changed

+0
-118
lines changed

compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Pipeline.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ import {
9292
} from '../Validation';
9393
import {validateLocalsNotReassignedAfterRender} from '../Validation/ValidateLocalsNotReassignedAfterRender';
9494
import {outlineFunctions} from '../Optimization/OutlineFunctions';
95-
import {propagatePhiTypes} from '../TypeInference/PropagatePhiTypes';
9695
import {lowerContextAccess} from '../Optimization/LowerContextAccess';
9796
import {validateNoSetStateInEffects} from '../Validation/ValidateNoSetStateInEffects';
9897
import {validateNoJSXInTryStatement} from '../Validation/ValidateNoJSXInTryStatement';
@@ -327,13 +326,6 @@ function runWithEnvironment(
327326
value: hir,
328327
});
329328

330-
propagatePhiTypes(hir);
331-
log({
332-
kind: 'hir',
333-
name: 'PropagatePhiTypes',
334-
value: hir,
335-
});
336-
337329
if (env.isInferredMemoEnabled) {
338330
if (env.config.validateStaticComponents) {
339331
env.logErrors(validateStaticComponents(hir));

compiler/packages/babel-plugin-react-compiler/src/TypeInference/PropagatePhiTypes.ts

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)