[InstCombine] fold sub of min/max of sub with common operand
x - max(x - y, 0) --> min(x, y) x - min(x - y, 0) --> max(x, y) https://alive2.llvm.org/ce/z/2YkqFe issue #55470
Loading
Please sign in to comment
x - max(x - y, 0) --> min(x, y) x - min(x - y, 0) --> max(x, y) https://alive2.llvm.org/ce/z/2YkqFe issue #55470