[llvm-branch-commits] [llvm] [SeparateConstOffsetFromGEP] Preserve inbounds flag based on ValueTracking (PR #130617)

Fabian Ritter via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Mar 11 07:16:15 PDT 2025


================
@@ -24,3 +24,26 @@ entry:
   store float %3, ptr %arrayidx.dst, align 4
   ret void
 }
+
+; All offsets must be positive, so inbounds can be preserved.
----------------
ritter-x2a wrote:

The test is now simplified.

https://github.com/llvm/llvm-project/pull/130617


More information about the llvm-branch-commits mailing list