Skip to content

Commit

Permalink
Remove br undef in tools directory
Browse files Browse the repository at this point in the history
  • Loading branch information
leewei05 committed Nov 6, 2024
1 parent 3f2f76f commit f1146b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/test/tools/llvm-reduce/operands-skip.ll
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@

@Global = global i32 42

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

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

%nondominating2 = getelementptr i32, ptr %indirect, i32 6
br i1 undef, label %loop, label %exit
br i1 %arg, label %loop, label %exit

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

0 comments on commit f1146b2

Please sign in to comment.