removing redundant loop phys
This commit is contained in:
parent
7cac9382ad
commit
f079daa42d
|
@ -1043,6 +1043,10 @@ impl Nodes {
|
||||||
K::Phi => {
|
K::Phi => {
|
||||||
let &[ctrl, lhs, rhs] = self[target].inputs.as_slice() else { unreachable!() };
|
let &[ctrl, lhs, rhs] = self[target].inputs.as_slice() else { unreachable!() };
|
||||||
|
|
||||||
|
if rhs == target {
|
||||||
|
return Some(lhs);
|
||||||
|
}
|
||||||
|
|
||||||
if lhs == rhs {
|
if lhs == rhs {
|
||||||
return Some(lhs);
|
return Some(lhs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue