aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-11-06 21:56:53 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-11-06 21:59:45 +0100
commit9f0194be4570469ce830e6d581d21c75650562c7 (patch)
treed7dc95df5e9846490a242eaaaa001259e1e8fd11 /clang/lib/CodeGen/CodeGenModule.cpp
parentcefc01fa65a7ebcc10cbf3c3bb2278a6a122deaf (diff)
downloadllvm-9f0194be4570469ce830e6d581d21c75650562c7.zip
llvm-9f0194be4570469ce830e6d581d21c75650562c7.tar.gz
llvm-9f0194be4570469ce830e6d581d21c75650562c7.tar.bz2
[ConstantRange] Add getEquivalentICmp() variant with offset (NFCI)
Add a variant of getEquivalentICmp() that produces an optional offset. This allows us to create an equivalent icmp for all ranges. Use this in the with.overflow folding code, which was doing this adjustment separately -- this clarifies that the fold will indeed always apply.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions