diff options
author | Björn Pettersson <bjorn.a.pettersson@ericsson.com> | 2025-04-14 09:33:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-14 09:33:59 +0200 |
commit | 51fe5d2c314619796c29af6bd717c5c212faa811 (patch) | |
tree | 8ee48fdf154e90329ae2a89344876865ec314bff /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | e29f986838bcd0ff60cf33e7ae5ee867bad0de00 (diff) | |
download | llvm-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