removing redundant loop phys

This commit is contained in:
Jakub Doka 2024-11-11 23:33:36 +01:00
parent 7cac9382ad
commit f079daa42d
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -1043,6 +1043,10 @@ impl Nodes {
K::Phi => {
let &[ctrl, lhs, rhs] = self[target].inputs.as_slice() else { unreachable!() };
if rhs == target {
return Some(lhs);
}
if lhs == rhs {
return Some(lhs);
}