diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-11-06 21:56:53 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-11-06 21:59:45 +0100 |
commit | 9f0194be4570469ce830e6d581d21c75650562c7 (patch) | |
tree | d7dc95df5e9846490a242eaaaa001259e1e8fd11 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | cefc01fa65a7ebcc10cbf3c3bb2278a6a122deaf (diff) | |
download | llvm-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