diff options
author | Sanjay Patel <spatel@rotateright.com> | 2023-03-06 10:22:58 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2023-03-06 13:49:48 -0500 |
commit | 74a58499b7c0995b782a2f851b8a6c44b2bc5361 (patch) | |
tree | 7e03ddf457af2ddad8936b50d768d9becac1274e /lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp | |
parent | 870e6b6e6527bf8b9f56f1310e30c2d785585d2e (diff) | |
download | llvm-74a58499b7c0995b782a2f851b8a6c44b2bc5361.zip llvm-74a58499b7c0995b782a2f851b8a6c44b2bc5361.tar.gz llvm-74a58499b7c0995b782a2f851b8a6c44b2bc5361.tar.bz2 |
[InstCombine] fold signed absolute diff patterns
This overlaps partially with the codegen patch D144789. This needs no-wrap
for correctness, and I'm not sure if there's an unsigned equivalent:
https://alive2.llvm.org/ce/z/ErmQ-9
https://alive2.llvm.org/ce/z/mr-c_A
This is obviously an improvement in IR, and it looks like a codegen win
for all targets and data types that I sampled.
The 'nabs' case is left as a potential follow-up (and seems less likely
to occur in real code).
Differential Revision: https://reviews.llvm.org/D145073
Diffstat (limited to 'lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp')
0 files changed, 0 insertions, 0 deletions