aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2022-04-11 11:32:45 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2022-04-11 11:32:56 +0100
commit431e93f4f56e5b839bf1f746d65139ccf3ca2232 (patch)
tree8d7d75e49633338e48b44762d08620abecf1db22 /llvm/lib/CodeGen/CodeGen.cpp
parentbdadf1c2ecb452ca41f23caa87415bc1f9a8431b (diff)
downloadllvm-431e93f4f56e5b839bf1f746d65139ccf3ca2232.zip
llvm-431e93f4f56e5b839bf1f746d65139ccf3ca2232.tar.gz
llvm-431e93f4f56e5b839bf1f746d65139ccf3ca2232.tar.bz2
[InstCombine] Fold sub(add(x,y),min/max(x,y)) -> max/min(x,y) (PR38280)
As discussed on Issue #37628, we can flip a min/max node if we're subtracting from the sum of the node's operands Alive2: https://alive2.llvm.org/ce/z/W_KXfy Differential Revision: https://reviews.llvm.org/D123399
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions