diff options
author | Alexander Shaposhnikov <ashaposhnikov@google.com> | 2022-07-22 22:08:47 +0000 |
---|---|---|
committer | Alexander Shaposhnikov <ashaposhnikov@google.com> | 2022-07-22 22:08:53 +0000 |
commit | 2ebfda2417e9cead344b020c1b1b7d3344893291 (patch) | |
tree | c7289acfb8e9b997641420e2c413550c09451078 /llvm/lib/CodeGen/BasicBlockSections.cpp | |
parent | 8f0c901c1a172313a32bc06a1fcface76cd1220f (diff) | |
download | llvm-2ebfda2417e9cead344b020c1b1b7d3344893291.zip llvm-2ebfda2417e9cead344b020c1b1b7d3344893291.tar.gz llvm-2ebfda2417e9cead344b020c1b1b7d3344893291.tar.bz2 |
[InstCombine] Improve folding of mul + icmp
This diff adds folds for patterns like X * A < B
where A, B are constants and "mul" has either "nsw" or "nuw".
(to address https://github.com/llvm/llvm-project/issues/56563).
Test plan:
1/ ninja check-llvm check-clang
2/ Bootstrapped LLVM/Clang pass tests
Differential revision: https://reviews.llvm.org/D130039
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
0 files changed, 0 insertions, 0 deletions