[llvm] [IndVarSimplify] [NFC] Fix incorrect test (PR #159683)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 19 10:23:51 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
----------------
fmayer wrote:
Shouldn't we add overflowing versions for the other tests then as well? Would be kind of weird to into have it for usub.
https://github.com/llvm/llvm-project/pull/159683
More information about the llvm-commits
mailing list