aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2020-08-05 21:20:47 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2020-08-05 21:47:30 +0300
commitf3056dcc02d5dcde1669f61084a940e1ded3dfda (patch)
tree28626140da338c46b1408d80c5ddd1729a415f2e /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent1d25d0734a15d03f1356735719e04a517a1a8a96 (diff)
downloadllvm-f3056dcc02d5dcde1669f61084a940e1ded3dfda.zip
llvm-f3056dcc02d5dcde1669f61084a940e1ded3dfda.tar.gz
llvm-f3056dcc02d5dcde1669f61084a940e1ded3dfda.tar.bz2
[InstCombine] Negator: -(cond ? x : -x) --> cond ? -x : x
We were errneously only doing that for old-style abs/nabs, but we have no such legality check on the condition of the select. https://rise4fun.com/Alive/xBHS
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions