diff --git a/llvm/test/Transforms/Util/PredicateInfo/ordering.ll b/llvm/test/Transforms/Util/PredicateInfo/ordering.ll --- a/llvm/test/Transforms/Util/PredicateInfo/ordering.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/ordering.ll @@ -6,7 +6,7 @@ ; Make sure we are visiting the values to build predicate infos for in a ; deterministic order. -define i32 @test12(i32 %x, i32 %y) { +define i32 @test12(i32 %x, i32 %y, i1 %c1) { ; CHECK: Visiting %lcmp = icmp eq i32 %x, 0 ; CHECK: Visiting i32 %x ; CHECK: Visiting %lcmp2 = icmp slt i32 %y, 1000 @@ -18,7 +18,7 @@ ; CHECK: Visiting %lcmp7 = icmp slt i32 %y.0.1.2.3.4, 700 ; CHECK: Visiting %rcmp = icmp eq i32 %x, 0 entry: - br i1 undef, label %left, label %right + br i1 %c1, label %left, label %right left: %lcmp = icmp eq i32 %x, 0 diff --git a/llvm/test/Transforms/Util/lowerswitch.ll b/llvm/test/Transforms/Util/lowerswitch.ll --- a/llvm/test/Transforms/Util/lowerswitch.ll +++ b/llvm/test/Transforms/Util/lowerswitch.ll @@ -64,9 +64,9 @@ } ; Test that we don't crash. -define void @test2(i32 %mode) { +define void @test2(i32 %mode, i1 %c1, i1 %c2, i1 %c3, i1 %c4, i1 %c5, i1 %c6) { ; CHECK-LABEL: @test2 - br i1 undef, label %1, label %._crit_edge + br i1 %c1, label %1, label %._crit_edge ;