dillon1000/react

Commit

[rust] Port EliminateRedundantPhis

This is a nearly 1:1 port of EliminateRedundantPhis to Rust, the algorithm is 
identical and all differences are superficial. There are few things missing (an 
invariant instead of a panic in one place, recursing into function expressions) 
but the Rust version is still going to end up shorter despite keeping all the 
comments.
Browse files
Changed paths10 files
First-parent comparison
M compiler/forget/Cargo.lock ModifiedM compiler/forget/Cargo.toml ModifiedM compiler/forget/crates/fixtures/tests/fixtures_test.rs ModifiedM compiler/forget/crates/fixtures/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/hir-ssa/Cargo.toml ModifiedA compiler/forget/crates/hir-ssa/src/eliminate_redundant_phis.rs AddedM compiler/forget/crates/hir-ssa/src/lib.rs ModifiedD compiler/forget/crates/hir-ssa/src/minimize_phis.rs DeletedA compiler/forget/crates/utils/Cargo.toml AddedA compiler/forget/crates/utils/src/lib.rs Added
Patch

Files changed

Rendering syntax-highlighted changes…