diff options
author | Sanjay Patel <spatel@rotateright.com> | 2021-04-08 14:29:33 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2021-04-08 14:37:39 -0400 |
commit | 5094e1279eb2e168bf6818b368bf6ff4835de2bc (patch) | |
tree | 2a1bd752d18f7a94b2a05d4e2cceee9e8fd4e9a6 /llvm/lib/Support | |
parent | c52dbdbc33b998e43edbc21b6c150bda5f5516a2 (diff) | |
download | llvm-5094e1279eb2e168bf6818b368bf6ff4835de2bc.zip llvm-5094e1279eb2e168bf6818b368bf6ff4835de2bc.tar.gz llvm-5094e1279eb2e168bf6818b368bf6ff4835de2bc.tar.bz2 |
[InstCombine] fold min/max intrinsic with negated operand to abs
The smax case shows up in https://llvm.org/PR49885 .
The others seem unlikely, but we might as well try
for uniformity (although that could mean an extra
instruction to create "nabs").
smax -- https://alive2.llvm.org/ce/z/8yYaGy
smin -- https://alive2.llvm.org/ce/z/0_7zc_
umax -- https://alive2.llvm.org/ce/z/EcsZWs
umin -- https://alive2.llvm.org/ce/z/Xw6WvB
Diffstat (limited to 'llvm/lib/Support')
0 files changed, 0 insertions, 0 deletions