Skip to content

Commit 6df69dc

Browse files
committed
Regenerate the test result so the whole IR is included.
1 parent 30a97d4 commit 6df69dc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

llvm/test/Transforms/JumpThreading/pr62908.ll

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55

66
define i32 @test() {
77
; CHECK-LABEL: define i32 @test() {
8+
; CHECK-NEXT: join.thread:
9+
; CHECK-NEXT: br label [[END:%.*]]
10+
; CHECK: unreachable:
11+
; CHECK-NEXT: [[SH_PROM:%.*]] = zext i32 -1 to i64
12+
; CHECK-NEXT: [[SHL:%.*]] = shl nsw i64 -1, [[SH_PROM]]
13+
; CHECK-NEXT: [[CONV:%.*]] = trunc i64 [[SHL]] to i32
14+
; CHECK-NEXT: br label [[JOIN:%.*]]
15+
; CHECK: join:
16+
; CHECK-NEXT: [[PHI:%.*]] = phi i32 [ [[CONV]], [[UNREACHABLE:%.*]] ]
17+
; CHECK-NEXT: [[CMP:%.*]] = icmp eq i32 [[PHI]], 0
18+
; CHECK-NEXT: br i1 [[CMP]], label [[END]], label [[END]]
819
; CHECK: end:
920
; CHECK-NEXT: ret i32 0
1021
;

0 commit comments

Comments
 (0)