Files
clang-p2996/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
Fabian Ritter 720a91183b [SeparateConstOffsetFromGEP] Preserve inbounds flag based on ValueTracking and NUW (#130617)
If we know that the initial GEP was inbounds, and we change it to a
sequence of GEPs from the same base pointer where every offset is
non-negative, then the new GEPs are inbounds.

We can also preserve inbounds if the inbounds GEP and the involved additions are NUW.

For SWDEV-516125.
2025-04-23 12:38:41 +02:00

58 KiB