Closed ajpal closed 9 months ago
Note: This PR does seem to handle cases like
var x = 0;
if b {
x = 1;
} else {
x = -1;
}
return f(x)
whose corresponding IR form is
f(if b then 1 else -1)
since there are no side effects. So this PR actually implements a different optimization than the switch pull in beneath from the milestone encoding?