aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorBjörn Pettersson <bjorn.a.pettersson@ericsson.com>2025-04-14 09:33:59 +0200
committerGitHub <noreply@github.com>2025-04-14 09:33:59 +0200
commit51fe5d2c314619796c29af6bd717c5c212faa811 (patch)
tree8ee48fdf154e90329ae2a89344876865ec314bff /clang/lib/CodeGen/CodeGenModule.cpp
parente29f986838bcd0ff60cf33e7ae5ee867bad0de00 (diff)
downloadllvm-51fe5d2c314619796c29af6bd717c5c212faa811.zip
llvm-51fe5d2c314619796c29af6bd717c5c212faa811.tar.gz
llvm-51fe5d2c314619796c29af6bd717c5c212faa811.tar.bz2
[InstCombine] Pre-commit tests related to ADDLIKE+GEP->GEP+GEP. NFC (#135154)
InstCombine can transform ADD+GEP into GEP+GEP. But those rewrites does not currently trigger when the ADD is a disjoint OR (which happens to be the canonical form for certain ADD operations). Add lit tests to show that we are lacking such rewrites. Also add a test case showing that we do not preserve "inbounds nuw", "nusw nuw" and "nuw" when doing such transforms and the ADD/OR is known to be NUW.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions