diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-03-15 14:17:38 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-03-15 14:17:38 +0000 |
commit | 7e4cf582cffdc287a0d6ee354e90a4fbdc5a696d (patch) | |
tree | 70775492c9dfcdeeb75ca7366f62931223e3271e /lldb/packages/Python/lldbsuite/test/gdbclientutils.py | |
parent | 1df20fa8f5aea8c59995f13f30d3212aa75ccdbc (diff) | |
download | llvm-7e4cf582cffdc287a0d6ee354e90a4fbdc5a696d.zip llvm-7e4cf582cffdc287a0d6ee354e90a4fbdc5a696d.tar.gz llvm-7e4cf582cffdc287a0d6ee354e90a4fbdc5a696d.tar.bz2 |
[InstCombine] Add general constant support to eq/ne icmp(add(X,C1),add(Y,C2)) -> icmp(add(X,C1-C2),Y) fold
A further extension for Issue #32161
For eq/ne comparisons - the sign mismatch and bounds constraints are redundant, so if the that fold fails, fallback and just fold the constants directly.
https://alive2.llvm.org/ce/z/cdodNQ
The loop rotation test change looks mostly benign - the backend doesn't seem to suffer? https://gcc.godbolt.org/z/dErMY78To
Differential Revision: https://reviews.llvm.org/D121551
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py')
0 files changed, 0 insertions, 0 deletions