dillon1000/react

Commit

[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.
Browse files
Changed paths5 files
First-parent comparison
M compiler/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…