diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2023-11-16 02:35:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 02:35:47 +0800 |
commit | 8e516d48fedc1d0b537fe0e134259ac077e5df16 (patch) | |
tree | a8b4953c2b78d56cd80d54d1699d17ac7558d028 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 4fdc289d4ac26970749ca24802931bd662a2a1f8 (diff) | |
download | llvm-8e516d48fedc1d0b537fe0e134259ac077e5df16.zip llvm-8e516d48fedc1d0b537fe0e134259ac077e5df16.tar.gz llvm-8e516d48fedc1d0b537fe0e134259ac077e5df16.tar.bz2 |
[InstCombine] Infer nuw flags for `C-(X+C2)` -> `(C-C2)-X` (#72373)
This patch improves https://reviews.llvm.org/D152068 by inferring NUW
flags for sub insts.
It is worth noting that we don't need to check overflow for `C-C2`.
Alive2: https://alive2.llvm.org/ce/z/uutGpS
This missed optimization is discovered with the help of
https://github.com/AliveToolkit/alive2/pull/962.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions