dillon1000/react

Commit

[hir] Refactor constant propagation of phis

This PR moves the phi evaluation to a separate function. 

Most importantly, it inverts the default case to _not_ constant propagate unless 
we have explicit validation of the phi operands.
Browse files
Changed paths2 files
First-parent comparison
M compiler/forget/packages/babel-plugin-react-forget/src/Optimization/ConstantPropagation.ts ModifiedM compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/constant-propagate-global-phis.expect.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…