aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-12-08 15:40:32 +0100
committerNikita Popov <npopov@redhat.com>2023-12-08 15:45:58 +0100
commit4a2a6397f11da7c15a73d19fb1e6c9dcd1ceb5af (patch)
tree332b42db22e1eaeff717e0e3889e1335076492cd /llvm/lib/Support/CommandLine.cpp
parentcf029a22bd0c87bb475ee0440e9085bb96c7e011 (diff)
downloadllvm-4a2a6397f11da7c15a73d19fb1e6c9dcd1ceb5af.zip
llvm-4a2a6397f11da7c15a73d19fb1e6c9dcd1ceb5af.tar.gz
llvm-4a2a6397f11da7c15a73d19fb1e6c9dcd1ceb5af.tar.bz2
[InstCombine] Relax one-use check for icmp of gep fold
Instead of checking whether the GEP as a whole is constant, only check whether it has constant incides. This matches what we do in other places in this code. This has little practical impact, because it is mostly already handled through other cases anyway. We see a difference for non-inbounds equality comparisons.
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions