[llvm] [IndVarSimplify] [NFC] Fix incorrect test (PR #159683)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 19 01:04:17 PDT 2025


================
@@ -109,12 +109,9 @@ for.body:                                         ; preds = %entry, %cont
   %0 = tail call { i32, i1 } @llvm.usub.with.overflow.i32(i32 %i.04, i32 1)
   %1 = extractvalue { i32, i1 } %0, 1
 
-; It is theoretically possible to prove this, but SCEV cannot
-; represent non-unsigned-wrapping subtraction operations.
-
 ; CHECK: for.body:
-; CHECK:  [[COND:%[^ ]+]] = extractvalue { i32, i1 } %1, 1
-; CHECK-NEXT:  br i1 [[COND]], label %trap, label %cont, !nosanitize !0
+; CHECK-NOT: @llvm.usub.with.overflow.i32
----------------
fhahn wrote:

might be good to keep the original test in additiona to the new versrion?

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


More information about the llvm-commits mailing list