llvm-reduce: Fix invalid reduction for phis with repeat inputs
Phis have a quirk where the same predecessor block may appear multiple times if the same block branches to it multiple ways. All the values need to match, but this was replacing each operand independently. If an operand can be simplified, make sure to replace every instance of the incoming block's value.
Loading
Please sign in to comment