diff options
author | Antonio Frighetto <me@antoniofrighetto.com> | 2023-11-28 21:04:56 +0100 |
---|---|---|
committer | Antonio Frighetto <me@antoniofrighetto.com> | 2023-11-30 11:57:01 +0100 |
commit | 7d5f79f13b498ba19ae257d75a726e354a076ed9 (patch) | |
tree | 8ff516b6d857de57cc30aca46be4743da3db26d3 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | e78a45dd104c25475dcf141e0146790e9f2a219c (diff) | |
download | llvm-7d5f79f13b498ba19ae257d75a726e354a076ed9.zip llvm-7d5f79f13b498ba19ae257d75a726e354a076ed9.tar.gz llvm-7d5f79f13b498ba19ae257d75a726e354a076ed9.tar.bz2 |
[InstCombine] Handle equality comparison when flooring by constant 2
Support `icmp eq` when reducing signed divisions by power of 2 to
arithmetic shift right, as `icmp ugt` may have been canonicalized
into `icmp eq` by the time additions are folded into `ashr`.
Fixes: https://github.com/llvm/llvm-project/issues/73622.
Proof: https://alive2.llvm.org/ce/z/8-eUdb.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions