dillon1000/react
Commit
Browse files [rust] Recurse into functions in other passes
Updates eliminate_redundant_phis and constant_propagation to recurse into function expressions. I also realized there was a bug in EliminateRedundantPhis in which we wouldn't traverse into function expressions encountered after finding a back edge, so i fixed that logic in both versions.
Changed paths5 files
First-parent comparisoncompiler/forget/crates/fixtures/tests/fixtures/function-expressions.js ModifiedM compiler/forget/crates/fixtures/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/hir-optimization/src/constant_propagation.rs ModifiedM compiler/forget/crates/hir-ssa/src/eliminate_redundant_phis.rs ModifiedM compiler/forget/packages/babel-plugin-react-forget/src/SSA/EliminateRedundantPhi.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…