diff options
author | Nikita Popov <npopov@redhat.com> | 2024-04-29 09:44:45 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 09:44:45 +0900 |
commit | feaddc10194e54a5ef977320134956ad91591324 (patch) | |
tree | ba5806bbf241f12171ee962af641956e695c6701 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 35b89dda2b9734917824b1457f149192669b314c (diff) | |
download | llvm-feaddc10194e54a5ef977320134956ad91591324.zip llvm-feaddc10194e54a5ef977320134956ad91591324.tar.gz llvm-feaddc10194e54a5ef977320134956ad91591324.tar.bz2 |
[InstCombine] Preserve inbounds when canonicalizing gep+add (#90160)
When canonicalizing gep+add into gep+gep we can preserve inbounds if the
add is also nsw and both add operands are non-negative (or both
negative, but I don't think that's practically relevant).
Proof: https://alive2.llvm.org/ce/z/tJLBta
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions