Skip to content

Commit f1146b2

Browse files
committed
Remove br undef in tools directory
1 parent 3f2f76f commit f1146b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/test/tools/llvm-reduce/operands-skip.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727

2828
@Global = global i32 42
2929

30-
define void @func(ptr %arg1, ptr %arg2) {
30+
define void @func(ptr %arg1, ptr %arg2, i1 %arg) {
3131
entry:
3232
%val = getelementptr i32, ptr getelementptr (i32, ptr @Global, i32 1), i32 2
33-
br i1 undef, label %branch, label %loop
33+
br i1 %arg, label %branch, label %loop
3434

3535
branch:
3636
%nondominating1 = getelementptr i32, ptr %val, i32 3
@@ -50,7 +50,7 @@ loop:
5050
store i32 49, ptr %imm, align 4 ; Reduce to null
5151

5252
%nondominating2 = getelementptr i32, ptr %indirect, i32 6
53-
br i1 undef, label %loop, label %exit
53+
br i1 %arg, label %loop, label %exit
5454

5555
exit:
5656
store i32 50, ptr %arg2, align 4 ; Reduce to %arg1 (compactify function arguments)

0 commit comments

Comments
 (0)