[llvm] Reland "Redesign Straight-Line Strength Reduction (SLSR) (#162930)" (PR #169614)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 26 12:20:11 PST 2025


================
@@ -8,7 +8,7 @@ target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
 define void @path_compression(i32 %a, ptr %base, i16 %r, i1 %cond) {
 ; CHECK-LABEL: @path_compression(
 ; CHECK: [[I:%.*]] = sext i32 %a to i64
-; CHECK: [[GEP1:%.*]] = getelementptr inbounds %struct.A, ptr %base, i64 [[I]]
+; CHECK: [[GEP1:%.*]] = getelementptr %struct.A, ptr %base, i64 [[I]]
----------------
Artem-B wrote:

Is that intentional that we've lost `inbounds` here?

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


More information about the llvm-commits mailing list