[llvm] [llvm] Remove `br i1 undef` from regression tests (PR #118419)

Nuno Lopes via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 00:41:40 PST 2024


================
@@ -26,22 +27,25 @@ if.end:                                          ; preds = %if.then1, %entry
 }
 
 ;
-define internal i32 @test1(i1 %c) {
-; CHECK-LABEL: define internal i32 @test1(
-; CHECK-SAME: i1 [[C:%.*]]) {
+define internal i32 @test1(i1 %c, i1 %arg) {
+; CHECK-LABEL: define internal range(i32 0, 100) i32 @test1(
+; CHECK-SAME: i1 [[C:%.*]], i1 [[ARG:%.*]]) {
 ; CHECK-NEXT:  [[ENTRY:.*:]]
 ; CHECK-NEXT:    br label %[[IF_THEN:.*]]
 ; CHECK:       [[IF_THEN]]:
-; CHECK-NEXT:    [[CALL:%.*]] = call i32 @testf(i1 [[C]])
-; CHECK-NEXT:    br label %[[RET1:.*]]
+; CHECK-NEXT:    [[CALL:%.*]] = call i32 @testf(i1 [[C]], i1 [[ARG]])
+; CHECK-NEXT:    [[RES:%.*]] = icmp eq i32 [[CALL]], 10
----------------
nunoplopes wrote:

don't change the spirit of the test

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


More information about the llvm-commits mailing list