aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BasicBlockSections.cpp
diff options
context:
space:
mode:
authorAlexander Shaposhnikov <ashaposhnikov@google.com>2022-07-22 22:08:47 +0000
committerAlexander Shaposhnikov <ashaposhnikov@google.com>2022-07-22 22:08:53 +0000
commit2ebfda2417e9cead344b020c1b1b7d3344893291 (patch)
treec7289acfb8e9b997641420e2c413550c09451078 /llvm/lib/CodeGen/BasicBlockSections.cpp
parent8f0c901c1a172313a32bc06a1fcface76cd1220f (diff)
downloadllvm-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