[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.
parent
8bed52c9
Please register or sign in to comment