[InstCombine] Support switch in phi to cond fold
For conditional branches, we know the value is i1 0 or i1 1 along the outgoing edges. For switches we can apply exactly the same optimization, just with the known values determined by the switch cases.
Loading
Please sign in to comment