mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[NFC][CHR] Autogenerate checklines in a few tests for ease of updates
This commit is contained in:
parent
3605ab1b0c
commit
029935da14
@ -29,7 +29,7 @@ define void @test_chr_1(i32* %i) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 3
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 3
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15:![0-9]+]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: call void @foo()
|
||||
@ -37,14 +37,14 @@ define void @test_chr_1(i32* %i) !prof !14 {
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[DOTNOT:%.*]] = icmp eq i32 [[TMP3]], 0
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof [[PROF16:![0-9]+]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB1_NONCHR]]
|
||||
; CHECK: bb1.nonchr:
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP5:%.*]] = icmp eq i32 [[TMP4]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP5]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP5]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb2.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
@ -102,7 +102,7 @@ define void @test_chr_1_1(i32* %i) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 7
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 7
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: call void @foo()
|
||||
@ -110,21 +110,21 @@ define void @test_chr_1_1(i32* %i) !prof !14 {
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[DOTNOT:%.*]] = icmp eq i32 [[TMP3]], 0
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB1_NONCHR]]
|
||||
; CHECK: bb1.nonchr:
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP5:%.*]] = icmp eq i32 [[TMP4]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP5]], label [[BB2_NONCHR:%.*]], label [[BB3_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP5]], label [[BB2_NONCHR:%.*]], label [[BB3_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb2.nonchr:
|
||||
; CHECK-NEXT: call void @bar()
|
||||
; CHECK-NEXT: br label [[BB3_NONCHR]]
|
||||
; CHECK: bb3.nonchr:
|
||||
; CHECK-NEXT: [[TMP6:%.*]] = and i32 [[TMP0]], 4
|
||||
; CHECK-NEXT: [[TMP7:%.*]] = icmp eq i32 [[TMP6]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP7]], label [[BB5]], label [[BB4_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP7]], label [[BB5]], label [[BB4_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb4.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB5]]
|
||||
@ -188,7 +188,7 @@ define void @test_chr_2(i32* %i) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 3
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 3
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB1:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB1:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb1:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: call void @foo()
|
||||
@ -196,15 +196,15 @@ define void @test_chr_2(i32* %i) !prof !14 {
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = and i32 [[TMP0]], 255
|
||||
; CHECK-NEXT: [[DOTNOT:%.*]] = icmp eq i32 [[TMP3]], 0
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB4]], label [[BB0_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB4]], label [[BB0_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[TMP5:%.*]] = icmp eq i32 [[TMP4]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP5]], label [[BB2_NONCHR:%.*]], label [[BB1_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP5]], label [[BB2_NONCHR:%.*]], label [[BB1_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb2.nonchr:
|
||||
; CHECK-NEXT: [[TMP6:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP7:%.*]] = icmp eq i32 [[TMP6]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP7]], label [[BB4]], label [[BB3_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP7]], label [[BB4]], label [[BB3_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb3.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB4]]
|
||||
@ -281,7 +281,7 @@ define void @test_chr_3(i32* %i) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 3
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 3
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: call void @foo()
|
||||
@ -289,14 +289,14 @@ define void @test_chr_3(i32* %i) !prof !14 {
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[DOTNOT:%.*]] = icmp eq i32 [[TMP3]], 0
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB1_NONCHR]]
|
||||
; CHECK: bb1.nonchr:
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP5:%.*]] = icmp eq i32 [[TMP4]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP5]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP5]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb2.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
@ -304,7 +304,7 @@ define void @test_chr_3(i32* %i) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP6:%.*]] = load i32, i32* [[I]], align 4
|
||||
; CHECK-NEXT: [[TMP7:%.*]] = and i32 [[TMP6]], 12
|
||||
; CHECK-NEXT: [[TMP8:%.*]] = icmp eq i32 [[TMP7]], 12
|
||||
; CHECK-NEXT: br i1 [[TMP8]], label [[BB4:%.*]], label [[BB3_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP8]], label [[BB4:%.*]], label [[BB3_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb4:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: call void @foo()
|
||||
@ -312,14 +312,14 @@ define void @test_chr_3(i32* %i) !prof !14 {
|
||||
; CHECK: bb3.split.nonchr:
|
||||
; CHECK-NEXT: [[TMP9:%.*]] = and i32 [[TMP6]], 4
|
||||
; CHECK-NEXT: [[DOTNOT1:%.*]] = icmp eq i32 [[TMP9]], 0
|
||||
; CHECK-NEXT: br i1 [[DOTNOT1]], label [[BB5_NONCHR:%.*]], label [[BB4_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[DOTNOT1]], label [[BB5_NONCHR:%.*]], label [[BB4_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb4.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB5_NONCHR]]
|
||||
; CHECK: bb5.nonchr:
|
||||
; CHECK-NEXT: [[TMP10:%.*]] = and i32 [[TMP6]], 8
|
||||
; CHECK-NEXT: [[TMP11:%.*]] = icmp eq i32 [[TMP10]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP11]], label [[BB7]], label [[BB6_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP11]], label [[BB7]], label [[BB6_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb6.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB7]]
|
||||
@ -389,7 +389,7 @@ define i32 @test_chr_4(i32* %i, i32 %sum0) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 3
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 3
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[ENTRY_SPLIT:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[ENTRY_SPLIT:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: entry.split:
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = add i32 [[SUM0:%.*]], 85
|
||||
; CHECK-NEXT: ret i32 [[TMP3]]
|
||||
@ -397,11 +397,11 @@ define i32 @test_chr_4(i32* %i, i32 %sum0) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = add i32 [[SUM0]], 42
|
||||
; CHECK-NEXT: [[TMP5:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[DOTNOT:%.*]] = icmp eq i32 [[TMP5]], 0
|
||||
; CHECK-NEXT: [[SUM1_NONCHR:%.*]] = select i1 [[DOTNOT]], i32 [[SUM0]], i32 [[TMP4]], !prof !16
|
||||
; CHECK-NEXT: [[SUM1_NONCHR:%.*]] = select i1 [[DOTNOT]], i32 [[SUM0]], i32 [[TMP4]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[TMP6:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP7:%.*]] = icmp eq i32 [[TMP6]], 0
|
||||
; CHECK-NEXT: [[TMP8:%.*]] = add i32 [[SUM1_NONCHR]], 43
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[TMP7]], i32 [[SUM1_NONCHR]], i32 [[TMP8]], !prof !16
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[TMP7]], i32 [[SUM1_NONCHR]], i32 [[TMP8]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: ret i32 [[SUM2_NONCHR]]
|
||||
;
|
||||
entry:
|
||||
@ -448,7 +448,7 @@ define i32 @test_chr_5(i32* %i, i32 %sum0) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 15
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 15
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = add i32 [[SUM0:%.*]], 85
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = add i32 [[SUM0]], 173
|
||||
@ -456,23 +456,23 @@ define i32 @test_chr_5(i32* %i, i32 %sum0) !prof !14 {
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[TMP5:%.*]] = and i32 [[TMP0]], 255
|
||||
; CHECK-NEXT: [[DOTNOT:%.*]] = icmp eq i32 [[TMP5]], 0
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB3]], label [[BB0_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB3]], label [[BB0_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: [[TMP6:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[TMP7:%.*]] = icmp eq i32 [[TMP6]], 0
|
||||
; CHECK-NEXT: [[TMP8:%.*]] = add i32 [[SUM0]], 42
|
||||
; CHECK-NEXT: [[SUM1_NONCHR:%.*]] = select i1 [[TMP7]], i32 [[SUM0]], i32 [[TMP8]], !prof !16
|
||||
; CHECK-NEXT: [[SUM1_NONCHR:%.*]] = select i1 [[TMP7]], i32 [[SUM0]], i32 [[TMP8]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[TMP9:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i32 [[TMP9]], 0
|
||||
; CHECK-NEXT: [[TMP11:%.*]] = add i32 [[SUM1_NONCHR]], 43
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[TMP10]], i32 [[SUM1_NONCHR]], i32 [[TMP11]], !prof !16
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[TMP10]], i32 [[SUM1_NONCHR]], i32 [[TMP11]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[TMP12:%.*]] = and i32 [[TMP0]], 4
|
||||
; CHECK-NEXT: [[TMP13:%.*]] = icmp eq i32 [[TMP12]], 0
|
||||
; CHECK-NEXT: [[TMP14:%.*]] = and i32 [[TMP0]], 8
|
||||
; CHECK-NEXT: [[TMP15:%.*]] = icmp eq i32 [[TMP14]], 0
|
||||
; CHECK-NEXT: [[SUM4_NONCHR_V:%.*]] = select i1 [[TMP15]], i32 44, i32 88
|
||||
; CHECK-NEXT: [[SUM4_NONCHR:%.*]] = add i32 [[SUM2_NONCHR]], [[SUM4_NONCHR_V]]
|
||||
; CHECK-NEXT: [[SUM5_NONCHR:%.*]] = select i1 [[TMP13]], i32 [[SUM2_NONCHR]], i32 [[SUM4_NONCHR]], !prof !16
|
||||
; CHECK-NEXT: [[SUM5_NONCHR:%.*]] = select i1 [[TMP13]], i32 [[SUM2_NONCHR]], i32 [[SUM4_NONCHR]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
; CHECK: bb3:
|
||||
; CHECK-NEXT: [[SUM6:%.*]] = phi i32 [ [[TMP4]], [[BB0]] ], [ [[SUM0]], [[ENTRY_SPLIT_NONCHR]] ], [ [[SUM5_NONCHR]], [[BB0_NONCHR]] ]
|
||||
@ -548,7 +548,7 @@ define i32 @test_chr_5_1(i32* %i, i32 %sum0) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = and i32 [[TMP0]], 11
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = icmp eq i32 [[TMP3]], 11
|
||||
; CHECK-NEXT: [[TMP5:%.*]] = and i1 [[TMP4]], [[TMP2]]
|
||||
; CHECK-NEXT: br i1 [[TMP5]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP5]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: [[TMP6:%.*]] = add i32 [[SUM0]], 85
|
||||
; CHECK-NEXT: [[TMP7:%.*]] = add i32 [[SUM0]], 173
|
||||
@ -556,23 +556,23 @@ define i32 @test_chr_5_1(i32* %i, i32 %sum0) !prof !14 {
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[TMP8:%.*]] = and i32 [[TMP0]], 255
|
||||
; CHECK-NEXT: [[DOTNOT:%.*]] = icmp eq i32 [[TMP8]], 0
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB3]], label [[BB0_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB3]], label [[BB0_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: [[TMP9:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i32 [[TMP9]], 0
|
||||
; CHECK-NEXT: [[TMP11:%.*]] = add i32 [[SUM0]], 42
|
||||
; CHECK-NEXT: [[SUM1_NONCHR:%.*]] = select i1 [[TMP10]], i32 [[SUM0]], i32 [[TMP11]], !prof !16
|
||||
; CHECK-NEXT: [[SUM1_NONCHR:%.*]] = select i1 [[TMP10]], i32 [[SUM0]], i32 [[TMP11]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[TMP12:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP13:%.*]] = icmp eq i32 [[TMP12]], 0
|
||||
; CHECK-NEXT: [[TMP14:%.*]] = add i32 [[SUM1_NONCHR]], 43
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[TMP13]], i32 [[SUM1_NONCHR]], i32 [[TMP14]], !prof !16
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[TMP13]], i32 [[SUM1_NONCHR]], i32 [[TMP14]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[TMP15:%.*]] = and i32 [[SUM0]], 4
|
||||
; CHECK-NEXT: [[TMP16:%.*]] = icmp eq i32 [[TMP15]], 0
|
||||
; CHECK-NEXT: [[TMP17:%.*]] = and i32 [[TMP0]], 8
|
||||
; CHECK-NEXT: [[TMP18:%.*]] = icmp eq i32 [[TMP17]], 0
|
||||
; CHECK-NEXT: [[SUM4_NONCHR_V:%.*]] = select i1 [[TMP18]], i32 44, i32 88
|
||||
; CHECK-NEXT: [[SUM4_NONCHR:%.*]] = add i32 [[SUM2_NONCHR]], [[SUM4_NONCHR_V]]
|
||||
; CHECK-NEXT: [[SUM5_NONCHR:%.*]] = select i1 [[TMP16]], i32 [[SUM2_NONCHR]], i32 [[SUM4_NONCHR]], !prof !16
|
||||
; CHECK-NEXT: [[SUM5_NONCHR:%.*]] = select i1 [[TMP16]], i32 [[SUM2_NONCHR]], i32 [[SUM4_NONCHR]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
; CHECK: bb3:
|
||||
; CHECK-NEXT: [[SUM6:%.*]] = phi i32 [ [[TMP7]], [[BB0]] ], [ [[SUM0]], [[ENTRY_SPLIT_NONCHR]] ], [ [[SUM5_NONCHR]], [[BB0_NONCHR]] ]
|
||||
@ -649,7 +649,7 @@ define i32 @test_chr_6(i32* %i, i32* %j, i32 %sum0) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = and i32 [[I0]], 10
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = icmp eq i32 [[TMP0]], 10
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = and i1 [[TMP1]], [[V10]]
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: [[V8:%.*]] = add i32 [[SUM0:%.*]], 43
|
||||
; CHECK-NEXT: [[V13:%.*]] = add i32 [[SUM0]], 131
|
||||
@ -657,19 +657,19 @@ define i32 @test_chr_6(i32* %i, i32* %j, i32 %sum0) !prof !14 {
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[V1:%.*]] = and i32 [[I0]], 255
|
||||
; CHECK-NEXT: [[V2_NOT:%.*]] = icmp eq i32 [[V1]], 0
|
||||
; CHECK-NEXT: br i1 [[V2_NOT]], label [[BB3]], label [[BB0_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[V2_NOT]], label [[BB3]], label [[BB0_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: [[V3_NONCHR:%.*]] = and i32 [[I0]], 2
|
||||
; CHECK-NEXT: [[V4_NONCHR:%.*]] = icmp eq i32 [[V3_NONCHR]], 0
|
||||
; CHECK-NEXT: [[V8_NONCHR:%.*]] = add i32 [[SUM0]], 43
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[V4_NONCHR]], i32 [[SUM0]], i32 [[V8_NONCHR]], !prof !16
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[V4_NONCHR]], i32 [[SUM0]], i32 [[V8_NONCHR]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[V9_NONCHR:%.*]] = and i32 [[J0]], 4
|
||||
; CHECK-NEXT: [[V10_NONCHR:%.*]] = icmp eq i32 [[V9_NONCHR]], 0
|
||||
; CHECK-NEXT: [[V11_NONCHR:%.*]] = and i32 [[I0]], 8
|
||||
; CHECK-NEXT: [[V12_NONCHR:%.*]] = icmp eq i32 [[V11_NONCHR]], 0
|
||||
; CHECK-NEXT: [[SUM4_NONCHR_V:%.*]] = select i1 [[V12_NONCHR]], i32 44, i32 88
|
||||
; CHECK-NEXT: [[SUM4_NONCHR:%.*]] = add i32 [[SUM2_NONCHR]], [[SUM4_NONCHR_V]]
|
||||
; CHECK-NEXT: [[SUM5_NONCHR:%.*]] = select i1 [[V10_NONCHR]], i32 [[SUM2_NONCHR]], i32 [[SUM4_NONCHR]], !prof !16
|
||||
; CHECK-NEXT: [[SUM5_NONCHR:%.*]] = select i1 [[V10_NONCHR]], i32 [[SUM2_NONCHR]], i32 [[SUM4_NONCHR]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
; CHECK: bb3:
|
||||
; CHECK-NEXT: [[SUM6:%.*]] = phi i32 [ [[V13]], [[BB0]] ], [ [[SUM0]], [[ENTRY_SPLIT_NONCHR]] ], [ [[SUM5_NONCHR]], [[BB0_NONCHR]] ]
|
||||
@ -729,12 +729,12 @@ define i32 @test_chr_7(i32* %i, i32* %j, i32 %sum0) !prof !14 {
|
||||
; CHECK-NEXT: [[V3:%.*]] = and i32 [[I0]], 2
|
||||
; CHECK-NEXT: [[V4:%.*]] = icmp eq i32 [[V3]], 0
|
||||
; CHECK-NEXT: [[V8:%.*]] = add i32 [[SUM0:%.*]], 43
|
||||
; CHECK-NEXT: [[SUM2:%.*]] = select i1 [[V4]], i32 [[SUM0]], i32 [[V8]], !prof !16
|
||||
; CHECK-NEXT: [[SUM2:%.*]] = select i1 [[V4]], i32 [[SUM0]], i32 [[V8]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: [[J0:%.*]] = load i32, i32* [[J:%.*]], align 4
|
||||
; CHECK-NEXT: [[V9:%.*]] = and i32 [[J0]], 4
|
||||
; CHECK-NEXT: [[V10:%.*]] = icmp eq i32 [[V9]], 0
|
||||
; CHECK-NEXT: br i1 [[V10]], label [[BB2:%.*]], label [[BB1:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[V10]], label [[BB2:%.*]], label [[BB1:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb1:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: [[SUM4:%.*]] = add i32 [[SUM2]], 44
|
||||
@ -800,7 +800,7 @@ define i32 @test_chr_7_1(i32* %i, i32* %j, i32 %sum0) !prof !14 {
|
||||
; CHECK-NEXT: [[J0:%.*]] = load i32, i32* [[J:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = and i32 [[J0]], 12
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = icmp eq i32 [[TMP0]], 12
|
||||
; CHECK-NEXT: br i1 [[TMP1]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP1]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: call void @foo()
|
||||
@ -808,14 +808,14 @@ define i32 @test_chr_7_1(i32* %i, i32* %j, i32 %sum0) !prof !14 {
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[V9:%.*]] = and i32 [[J0]], 4
|
||||
; CHECK-NEXT: [[V10_NOT:%.*]] = icmp eq i32 [[V9]], 0
|
||||
; CHECK-NEXT: br i1 [[V10_NOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[V10_NOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB1_NONCHR]]
|
||||
; CHECK: bb1.nonchr:
|
||||
; CHECK-NEXT: [[V11_NONCHR:%.*]] = and i32 [[J0]], 8
|
||||
; CHECK-NEXT: [[V12_NONCHR:%.*]] = icmp eq i32 [[V11_NONCHR]], 0
|
||||
; CHECK-NEXT: br i1 [[V12_NONCHR]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[V12_NONCHR]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb2.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
@ -823,7 +823,7 @@ define i32 @test_chr_7_1(i32* %i, i32* %j, i32 %sum0) !prof !14 {
|
||||
; CHECK-NEXT: [[V3:%.*]] = and i32 [[I0]], 2
|
||||
; CHECK-NEXT: [[V4:%.*]] = icmp eq i32 [[V3]], 0
|
||||
; CHECK-NEXT: [[V8:%.*]] = add i32 [[SUM0:%.*]], 43
|
||||
; CHECK-NEXT: [[SUM2:%.*]] = select i1 [[V4]], i32 [[SUM0]], i32 [[V8]], !prof !16
|
||||
; CHECK-NEXT: [[SUM2:%.*]] = select i1 [[V4]], i32 [[SUM0]], i32 [[V8]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: ret i32 [[SUM2]]
|
||||
;
|
||||
entry:
|
||||
@ -870,14 +870,14 @@ define void @test_chr_8(i32* %i) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB1:%.*]], label [[BB0:%.*]], !prof !17
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB1:%.*]], label [[BB0:%.*]], !prof [[PROF17:![0-9]+]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB1]]
|
||||
; CHECK: bb1:
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = icmp eq i32 [[TMP3]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP4]], label [[BB3:%.*]], label [[BB2:%.*]], !prof !17
|
||||
; CHECK-NEXT: br i1 [[TMP4]], label [[BB3:%.*]], label [[BB2:%.*]], !prof [[PROF17]]
|
||||
; CHECK: bb2:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
@ -940,7 +940,7 @@ define i32 @test_chr_9(i32* %i, i32* %j) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 3
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 3
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = load i32, i32* [[J:%.*]], align 4
|
||||
@ -949,14 +949,14 @@ define i32 @test_chr_9(i32* %i, i32* %j) !prof !14 {
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[DOTNOT:%.*]] = icmp eq i32 [[TMP4]], 0
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB1_NONCHR]]
|
||||
; CHECK: bb1.nonchr:
|
||||
; CHECK-NEXT: [[TMP5:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP6:%.*]] = icmp eq i32 [[TMP5]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP6]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP6]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb2.nonchr:
|
||||
; CHECK-NEXT: [[TMP7:%.*]] = load i32, i32* [[J]], align 4
|
||||
; CHECK-NEXT: call void @foo()
|
||||
@ -1021,7 +1021,7 @@ define i32 @test_chr_10(i32* %i, i32* %j) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 3
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 3
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = load i32, i32* [[J:%.*]], align 4
|
||||
@ -1030,7 +1030,7 @@ define i32 @test_chr_10(i32* %i, i32* %j) !prof !14 {
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[DOTNOT:%.*]] = icmp eq i32 [[TMP4]], 0
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB1_NONCHR]]
|
||||
@ -1038,7 +1038,7 @@ define i32 @test_chr_10(i32* %i, i32* %j) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP5:%.*]] = load i32, i32* [[J]], align 4
|
||||
; CHECK-NEXT: [[TMP6:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP7:%.*]] = icmp eq i32 [[TMP6]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP7]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP7]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb2.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
@ -1117,13 +1117,13 @@ define void @test_chr_11(i32* %i, i32 %x) !prof !14 {
|
||||
; CHECK-NEXT: [[CONV717:%.*]] = fptosi double [[MUL16]] to i32
|
||||
; CHECK-NEXT: [[CMP18:%.*]] = icmp sgt i32 [[CONV717]], 0
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = and i1 [[TMP2]], [[CMP18]]
|
||||
; CHECK-NEXT: br i1 [[TMP3]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP3]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB3:%.*]]
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0_NONCHR:%.*]], label [[BB1_NONCHR:%.*]], !prof !18
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0_NONCHR:%.*]], label [[BB1_NONCHR:%.*]], !prof [[PROF18:![0-9]+]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB1_NONCHR]]
|
||||
@ -1133,7 +1133,7 @@ define void @test_chr_11(i32* %i, i32 %x) !prof !14 {
|
||||
; CHECK-NEXT: [[MUL16_NONCHR:%.*]] = fmul double [[DIV_NONCHR]], [[CONV_NONCHR]]
|
||||
; CHECK-NEXT: [[CONV717_NONCHR:%.*]] = fptosi double [[MUL16_NONCHR]] to i32
|
||||
; CHECK-NEXT: [[CMP18_NONCHR:%.*]] = icmp slt i32 [[CONV717_NONCHR]], 1
|
||||
; CHECK-NEXT: br i1 [[CMP18_NONCHR]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[CMP18_NONCHR]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb2.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
@ -1173,31 +1173,31 @@ define i32 @test_chr_12(i32* %i, i32 %sum0) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 255
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB3:%.*]], label [[BB0:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB3:%.*]], label [[BB0:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = icmp eq i32 [[TMP3]], 0
|
||||
; CHECK-NEXT: [[TMP5:%.*]] = add i32 [[SUM0:%.*]], 42
|
||||
; CHECK-NEXT: [[SUM1:%.*]] = select i1 [[TMP4]], i32 [[SUM0]], i32 [[TMP5]], !prof !16
|
||||
; CHECK-NEXT: [[SUM1:%.*]] = select i1 [[TMP4]], i32 [[SUM0]], i32 [[TMP5]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[TMP6:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP7:%.*]] = icmp eq i32 [[TMP6]], 0
|
||||
; CHECK-NEXT: [[TMP8:%.*]] = add i32 [[SUM1]], 43
|
||||
; CHECK-NEXT: [[SUM2:%.*]] = select i1 [[TMP7]], i32 [[SUM1]], i32 [[TMP8]], !prof !16
|
||||
; CHECK-NEXT: [[SUM2:%.*]] = select i1 [[TMP7]], i32 [[SUM1]], i32 [[TMP8]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[TMP9:%.*]] = load i32, i32* [[I]], align 4
|
||||
; CHECK-NEXT: [[TMP10:%.*]] = icmp ne i32 [[TMP9]], 0
|
||||
; CHECK-NEXT: [[TMP11:%.*]] = and i32 [[TMP0]], 8
|
||||
; CHECK-NEXT: [[TMP12:%.*]] = icmp ne i32 [[TMP11]], 0
|
||||
; CHECK-NEXT: [[TMP13:%.*]] = and i1 [[TMP10]], [[TMP12]]
|
||||
; CHECK-NEXT: br i1 [[TMP13]], label [[BB1:%.*]], label [[BB0_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP13]], label [[BB1:%.*]], label [[BB0_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb1:
|
||||
; CHECK-NEXT: [[TMP14:%.*]] = add i32 [[SUM2]], 88
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
; CHECK: bb0.split.nonchr:
|
||||
; CHECK-NEXT: br i1 [[TMP10]], label [[BB1_NONCHR:%.*]], label [[BB3]], !prof !18
|
||||
; CHECK-NEXT: br i1 [[TMP10]], label [[BB1_NONCHR:%.*]], label [[BB3]], !prof [[PROF18]]
|
||||
; CHECK: bb1.nonchr:
|
||||
; CHECK-NEXT: [[TMP15:%.*]] = and i32 [[TMP0]], 8
|
||||
; CHECK-NEXT: [[TMP16:%.*]] = icmp eq i32 [[TMP15]], 0
|
||||
; CHECK-NEXT: [[SUM4_NONCHR_V:%.*]] = select i1 [[TMP16]], i32 44, i32 88, !prof !16
|
||||
; CHECK-NEXT: [[SUM4_NONCHR_V:%.*]] = select i1 [[TMP16]], i32 44, i32 88, !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[SUM4_NONCHR:%.*]] = add i32 [[SUM2]], [[SUM4_NONCHR_V]]
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
; CHECK: bb3:
|
||||
@ -1278,11 +1278,11 @@ define i32 @test_chr_14(i32* %i, i32* %j, i32 %sum0, i1 %pred, i32 %z) !prof !14
|
||||
; CHECK-NEXT: entry:
|
||||
; CHECK-NEXT: [[I0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[V1:%.*]] = icmp eq i32 [[Z:%.*]], 1
|
||||
; CHECK-NEXT: br i1 [[V1]], label [[BB1:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[V1]], label [[BB1:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[V0:%.*]] = icmp eq i32 [[Z]], 0
|
||||
; CHECK-NEXT: [[V3_NONCHR:%.*]] = and i1 [[V0]], [[PRED:%.*]]
|
||||
; CHECK-NEXT: br i1 [[V3_NONCHR]], label [[BB0_NONCHR:%.*]], label [[BB1]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[V3_NONCHR]], label [[BB0_NONCHR:%.*]], label [[BB1]], !prof [[PROF16]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB1]]
|
||||
@ -1293,7 +1293,7 @@ define i32 @test_chr_14(i32* %i, i32* %j, i32 %sum0, i1 %pred, i32 %z) !prof !14
|
||||
; CHECK-NEXT: [[V8:%.*]] = add i32 [[SUM0:%.*]], 43
|
||||
; CHECK-NEXT: [[V5:%.*]] = icmp ne i32 [[I0]], [[J0]]
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = and i1 [[V4]], [[V5]]
|
||||
; CHECK-NEXT: br i1 [[TMP0]], label [[BB1_SPLIT:%.*]], label [[BB1_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP0]], label [[BB1_SPLIT:%.*]], label [[BB1_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb1.split:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: [[V9:%.*]] = and i32 [[I0]], 4
|
||||
@ -1304,7 +1304,7 @@ define i32 @test_chr_14(i32* %i, i32* %j, i32 %sum0, i1 %pred, i32 %z) !prof !14
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
; CHECK: bb1.split.nonchr:
|
||||
; CHECK-NEXT: [[V5_NONCHR:%.*]] = icmp eq i32 [[I0]], [[J0]]
|
||||
; CHECK-NEXT: [[SUM3_NONCHR:%.*]] = select i1 [[V5_NONCHR]], i32 [[SUM0]], i32 [[V8]], !prof !16
|
||||
; CHECK-NEXT: [[SUM3_NONCHR:%.*]] = select i1 [[V5_NONCHR]], i32 [[SUM0]], i32 [[V8]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: [[V9_NONCHR:%.*]] = and i32 [[I0]], 4
|
||||
; CHECK-NEXT: [[V10_NONCHR:%.*]] = icmp eq i32 [[V9_NONCHR]], 0
|
||||
@ -1372,7 +1372,7 @@ define i32 @test_chr_15(i32* %i, i32* %j, i32 %sum0, i1 %pred, i32 %z) !prof !14
|
||||
; CHECK-NEXT: [[I0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[V0:%.*]] = icmp eq i32 [[Z:%.*]], 0
|
||||
; CHECK-NEXT: [[V3:%.*]] = select i1 [[V0]], i1 [[PRED:%.*]], i1 false
|
||||
; CHECK-NEXT: br i1 [[V3]], label [[BB0:%.*]], label [[BB1:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[V3]], label [[BB0:%.*]], label [[BB1:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB1]]
|
||||
@ -1381,7 +1381,7 @@ define i32 @test_chr_15(i32* %i, i32* %j, i32 %sum0, i1 %pred, i32 %z) !prof !14
|
||||
; CHECK-NEXT: [[V6:%.*]] = and i32 [[I0]], 2
|
||||
; CHECK-NEXT: [[V4:%.*]] = icmp eq i32 [[V6]], [[J0]]
|
||||
; CHECK-NEXT: [[V8:%.*]] = add i32 [[SUM0:%.*]], 43
|
||||
; CHECK-NEXT: [[SUM2:%.*]] = select i1 [[V4]], i32 [[SUM0]], i32 [[V8]], !prof !16
|
||||
; CHECK-NEXT: [[SUM2:%.*]] = select i1 [[V4]], i32 [[SUM0]], i32 [[V8]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: [[V9:%.*]] = and i32 [[I0]], 4
|
||||
; CHECK-NEXT: [[V10:%.*]] = icmp eq i32 [[V9]], 0
|
||||
@ -1391,7 +1391,7 @@ define i32 @test_chr_15(i32* %i, i32* %j, i32 %sum0, i1 %pred, i32 %z) !prof !14
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
; CHECK: bb3:
|
||||
; CHECK-NEXT: [[V5:%.*]] = icmp eq i32 [[I0]], [[SUM2]]
|
||||
; CHECK-NEXT: [[SUM3:%.*]] = select i1 [[V5]], i32 [[SUM2]], i32 [[V8]], !prof !16
|
||||
; CHECK-NEXT: [[SUM3:%.*]] = select i1 [[V5]], i32 [[SUM2]], i32 [[V8]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[V11:%.*]] = add i32 [[I0]], [[SUM3]]
|
||||
; CHECK-NEXT: ret i32 [[V11]]
|
||||
;
|
||||
@ -1468,7 +1468,7 @@ define i32 @test_chr_16(i32* %i) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 3
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 3
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: [[V40:%.*]] = add i32 [[TMP0]], 44
|
||||
@ -1478,7 +1478,7 @@ define i32 @test_chr_16(i32* %i) !prof !14 {
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[DOTNOT:%.*]] = icmp eq i32 [[TMP3]], 0
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB1_NONCHR:%.*]], label [[BB0_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB1_NONCHR]]
|
||||
@ -1486,7 +1486,7 @@ define i32 @test_chr_16(i32* %i) !prof !14 {
|
||||
; CHECK-NEXT: [[V40_NONCHR:%.*]] = add i32 [[TMP0]], 44
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP5:%.*]] = icmp eq i32 [[TMP4]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP5]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP5]], label [[BB3]], label [[BB2_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb2.nonchr:
|
||||
; CHECK-NEXT: [[V41_NONCHR:%.*]] = add i32 [[TMP0]], 99
|
||||
; CHECK-NEXT: call void @foo()
|
||||
@ -1556,7 +1556,7 @@ define i32 @test_chr_17(i32 %i, i1 %j) !prof !14 {
|
||||
; CHECK: bbe:
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = and i32 [[I]], 1
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = icmp eq i32 [[TMP0]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP1]], label [[BB1]], label [[BB0:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP1]], label [[BB1]], label [[BB0:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: [[S:%.*]] = add i32 [[TMP0]], [[I]]
|
||||
@ -1565,7 +1565,7 @@ define i32 @test_chr_17(i32 %i, i1 %j) !prof !14 {
|
||||
; CHECK-NEXT: [[P:%.*]] = phi i32 [ [[I]], [[BBQ]] ], [ [[TMP0]], [[BBE]] ], [ [[S]], [[BB0]] ]
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = and i32 [[I]], 2
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = icmp eq i32 [[TMP2]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP3]], label [[BB3]], label [[BB2:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[TMP3]], label [[BB3]], label [[BB2:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb2:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: [[Q:%.*]] = add i32 [[P]], [[TMP2]]
|
||||
@ -1650,25 +1650,25 @@ define i32 @test_chr_18(i32* %i, i32 %sum0) !prof !14 {
|
||||
; CHECK-NEXT: [[SUM1:%.*]] = add i32 [[SUM0:%.*]], 42
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = and i32 [[LI]], 5
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = icmp eq i32 [[TMP0]], 5
|
||||
; CHECK-NEXT: br i1 [[TMP1]], label [[BB1:%.*]], label [[BB0_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP1]], label [[BB1:%.*]], label [[BB0_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb1:
|
||||
; CHECK-NEXT: [[SUM3:%.*]] = add i32 [[SUM0]], 86
|
||||
; CHECK-NEXT: br label [[BB2]]
|
||||
; CHECK: bb0.split.nonchr:
|
||||
; CHECK-NEXT: [[A4_NONCHR:%.*]] = and i32 [[LI]], 4
|
||||
; CHECK-NEXT: [[CMP4_NONCHR:%.*]] = icmp eq i32 [[A4_NONCHR]], 0
|
||||
; CHECK-NEXT: br i1 [[CMP4_NONCHR]], label [[BB2]], label [[BB1_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[CMP4_NONCHR]], label [[BB2]], label [[BB1_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb1.nonchr:
|
||||
; CHECK-NEXT: [[A1:%.*]] = and i32 [[LI]], 1
|
||||
; CHECK-NEXT: [[CMP1_NOT:%.*]] = icmp eq i32 [[A1]], 0
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[CMP1_NOT]], i32 [[SUM0]], i32 [[SUM1]], !prof !16
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[CMP1_NOT]], i32 [[SUM0]], i32 [[SUM1]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[SUM3_NONCHR:%.*]] = add i32 [[SUM2_NONCHR]], 44
|
||||
; CHECK-NEXT: br label [[BB2]]
|
||||
; CHECK: bb2:
|
||||
; CHECK-NEXT: [[SUM4:%.*]] = phi i32 [ [[SUM3]], [[BB1]] ], [ [[SUM1]], [[BB0_SPLIT_NONCHR]] ], [ [[SUM3_NONCHR]], [[BB1_NONCHR]] ]
|
||||
; CHECK-NEXT: [[TMP2]] = add i32 [[INC1]], 1
|
||||
; CHECK-NEXT: [[CMP:%.*]] = icmp eq i32 [[TMP2]], 100
|
||||
; CHECK-NEXT: br i1 [[CMP]], label [[BB3:%.*]], label [[BB0]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[CMP]], label [[BB3:%.*]], label [[BB0]], !prof [[PROF16]]
|
||||
; CHECK: bb3:
|
||||
; CHECK-NEXT: ret i32 [[SUM4]]
|
||||
;
|
||||
@ -1736,7 +1736,7 @@ define i32 @test_chr_19(i32* %i, i32 %sum0) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 9
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 9
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB0:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = add i32 [[SUM0:%.*]], 85
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = add i32 [[SUM0]], 173
|
||||
@ -1744,17 +1744,17 @@ define i32 @test_chr_19(i32* %i, i32 %sum0) !prof !14 {
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: [[TMP5:%.*]] = and i32 [[TMP0]], 255
|
||||
; CHECK-NEXT: [[DOTNOT:%.*]] = icmp eq i32 [[TMP5]], 0
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB3]], label [[BB0_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[DOTNOT]], label [[BB3]], label [[BB0_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb0.nonchr:
|
||||
; CHECK-NEXT: [[TMP6:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[TMP7:%.*]] = icmp eq i32 [[TMP6]], 0
|
||||
; CHECK-NEXT: [[TMP8:%.*]] = add i32 [[SUM0]], 85
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[TMP7]], i32 [[SUM0]], i32 [[TMP8]], !prof !16
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[TMP7]], i32 [[SUM0]], i32 [[TMP8]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[TMP9:%.*]] = and i32 [[TMP0]], 8
|
||||
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i32 [[TMP9]], 0
|
||||
; CHECK-NEXT: [[SUM4_NONCHR_V:%.*]] = select i1 [[TMP10]], i32 44, i32 88
|
||||
; CHECK-NEXT: [[SUM4_NONCHR:%.*]] = add i32 [[SUM2_NONCHR]], [[SUM4_NONCHR_V]]
|
||||
; CHECK-NEXT: [[SUM5_NONCHR:%.*]] = select i1 [[TMP7]], i32 [[SUM2_NONCHR]], i32 [[SUM4_NONCHR]], !prof !16
|
||||
; CHECK-NEXT: [[SUM5_NONCHR:%.*]] = select i1 [[TMP7]], i32 [[SUM2_NONCHR]], i32 [[SUM4_NONCHR]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
; CHECK: bb3:
|
||||
; CHECK-NEXT: [[SUM6:%.*]] = phi i32 [ [[TMP4]], [[BB0]] ], [ [[SUM0]], [[ENTRY_SPLIT_NONCHR]] ], [ [[SUM5_NONCHR]], [[BB0_NONCHR]] ]
|
||||
@ -1831,7 +1831,7 @@ define i32 @test_chr_20(i32* %i, i32 %sum0, i1 %j) !prof !14 {
|
||||
; CHECK-NEXT: [[I0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = and i32 [[I0]], 6
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = icmp eq i32 [[TMP0]], 6
|
||||
; CHECK-NEXT: br i1 [[TMP1]], label [[ENTRY_SPLIT:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP1]], label [[ENTRY_SPLIT:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: entry.split:
|
||||
; CHECK-NEXT: [[V9:%.*]] = add i32 [[SUM0:%.*]], 87
|
||||
; CHECK-NEXT: br i1 [[J:%.*]], label [[BB1:%.*]], label [[BB4:%.*]]
|
||||
@ -1842,11 +1842,11 @@ define i32 @test_chr_20(i32* %i, i32 %sum0, i1 %j) !prof !14 {
|
||||
; CHECK-NEXT: [[V8:%.*]] = add i32 [[SUM0]], 43
|
||||
; CHECK-NEXT: [[V3:%.*]] = and i32 [[I0]], 2
|
||||
; CHECK-NEXT: [[V4_NOT:%.*]] = icmp eq i32 [[V3]], 0
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[V4_NOT]], i32 [[SUM0]], i32 [[V8]], !prof !16
|
||||
; CHECK-NEXT: [[SUM2_NONCHR:%.*]] = select i1 [[V4_NOT]], i32 [[SUM0]], i32 [[V8]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: [[V6_NONCHR:%.*]] = and i32 [[I0]], 4
|
||||
; CHECK-NEXT: [[V5_NONCHR:%.*]] = icmp eq i32 [[V6_NONCHR]], 0
|
||||
; CHECK-NEXT: [[V9_NONCHR:%.*]] = add i32 [[SUM2_NONCHR]], 44
|
||||
; CHECK-NEXT: [[SUM3_NONCHR:%.*]] = select i1 [[V5_NONCHR]], i32 [[SUM2_NONCHR]], i32 [[V9_NONCHR]], !prof !16
|
||||
; CHECK-NEXT: [[SUM3_NONCHR:%.*]] = select i1 [[V5_NONCHR]], i32 [[SUM2_NONCHR]], i32 [[V9_NONCHR]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: br i1 [[J]], label [[BB1_NONCHR:%.*]], label [[BB4]]
|
||||
; CHECK: bb1.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
@ -1855,7 +1855,7 @@ define i32 @test_chr_20(i32* %i, i32 %sum0, i1 %j) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = phi i32 [ [[V9]], [[BB1]] ], [ [[V9]], [[ENTRY_SPLIT]] ], [ [[SUM3_NONCHR]], [[BB1_NONCHR]] ], [ [[SUM3_NONCHR]], [[ENTRY_SPLIT_NONCHR]] ]
|
||||
; CHECK-NEXT: [[I5:%.*]] = load i32, i32* [[I]], align 4
|
||||
; CHECK-NEXT: [[V12:%.*]] = icmp eq i32 [[I5]], 44
|
||||
; CHECK-NEXT: [[V13:%.*]] = select i1 [[V12]], i32 44, i32 [[TMP2]], !prof !16
|
||||
; CHECK-NEXT: [[V13:%.*]] = select i1 [[V12]], i32 44, i32 [[TMP2]], !prof [[PROF16]]
|
||||
; CHECK-NEXT: ret i32 [[V13]]
|
||||
;
|
||||
entry:
|
||||
@ -1907,13 +1907,13 @@ define i32 @test_chr_21(i64 %i, i64 %k, i64 %j) !prof !14 {
|
||||
; CHECK-NEXT: [[CMP_I:%.*]] = icmp ne i64 [[I]], 86
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = and i1 [[CMP0]], [[CMP3]]
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i1 [[TMP0]], [[CMP_I]]
|
||||
; CHECK-NEXT: br i1 [[TMP1]], label [[BB1:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[TMP1]], label [[BB1:%.*]], label [[ENTRY_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb1:
|
||||
; CHECK-NEXT: [[CMP2:%.*]] = icmp ne i64 [[I]], 2
|
||||
; CHECK-NEXT: switch i64 [[I]], label [[BB2:%.*]] [
|
||||
; CHECK-NEXT: i64 2, label [[BB3_NONCHR2:%.*]]
|
||||
; CHECK-NEXT: i64 86, label [[BB2_NONCHR1:%.*]]
|
||||
; CHECK-NEXT: ], !prof !19
|
||||
; CHECK-NEXT: ], !prof [[PROF19:![0-9]+]]
|
||||
; CHECK: bb2:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: call void @foo()
|
||||
@ -1922,7 +1922,7 @@ define i32 @test_chr_21(i64 %i, i64 %k, i64 %j) !prof !14 {
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB3_NONCHR2]]
|
||||
; CHECK: bb3.nonchr2:
|
||||
; CHECK-NEXT: br i1 [[CMP_I]], label [[BB4_NONCHR3:%.*]], label [[BB7]], !prof !18
|
||||
; CHECK-NEXT: br i1 [[CMP_I]], label [[BB4_NONCHR3:%.*]], label [[BB7]], !prof [[PROF18]]
|
||||
; CHECK: bb4.nonchr3:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB7]]
|
||||
@ -1931,18 +1931,18 @@ define i32 @test_chr_21(i64 %i, i64 %k, i64 %j) !prof !14 {
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB10:%.*]]
|
||||
; CHECK: entry.split.nonchr:
|
||||
; CHECK-NEXT: br i1 [[CMP0]], label [[BB1_NONCHR:%.*]], label [[BB10]], !prof !18
|
||||
; CHECK-NEXT: br i1 [[CMP0]], label [[BB1_NONCHR:%.*]], label [[BB10]], !prof [[PROF18]]
|
||||
; CHECK: bb1.nonchr:
|
||||
; CHECK-NEXT: [[CMP2_NONCHR:%.*]] = icmp eq i64 [[I]], 2
|
||||
; CHECK-NEXT: br i1 [[CMP2_NONCHR]], label [[BB3_NONCHR:%.*]], label [[BB2_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[CMP2_NONCHR]], label [[BB3_NONCHR:%.*]], label [[BB2_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb3.nonchr:
|
||||
; CHECK-NEXT: [[CMP_I_NONCHR:%.*]] = icmp eq i64 [[I]], 86
|
||||
; CHECK-NEXT: br i1 [[CMP_I_NONCHR]], label [[BB6_NONCHR:%.*]], label [[BB4_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[CMP_I_NONCHR]], label [[BB6_NONCHR:%.*]], label [[BB4_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb6.nonchr:
|
||||
; CHECK-NEXT: [[CMP3_NONCHR:%.*]] = icmp eq i64 [[J]], [[I]]
|
||||
; CHECK-NEXT: br i1 [[CMP3_NONCHR]], label [[BB8_NONCHR:%.*]], label [[BB7_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[CMP3_NONCHR]], label [[BB8_NONCHR:%.*]], label [[BB7_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb8.nonchr:
|
||||
; CHECK-NEXT: br i1 [[CMP_I_NONCHR]], label [[BB10]], label [[BB9_NONCHR:%.*]], !prof !16
|
||||
; CHECK-NEXT: br i1 [[CMP_I_NONCHR]], label [[BB10]], label [[BB9_NONCHR:%.*]], !prof [[PROF16]]
|
||||
; CHECK: bb9.nonchr:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB10]]
|
||||
@ -2008,7 +2008,7 @@ define i64 @test_chr_22(i1 %i, i64* %j, i64 %v0) !prof !14 {
|
||||
; CHECK-NEXT: [[REASS_ADD:%.*]] = shl i64 [[V0:%.*]], 1
|
||||
; CHECK-NEXT: [[V2:%.*]] = add i64 [[REASS_ADD]], 3
|
||||
; CHECK-NEXT: [[C1:%.*]] = icmp slt i64 [[V2]], 100
|
||||
; CHECK-NEXT: br i1 [[C1]], label [[BB0_SPLIT:%.*]], label [[BB0_SPLIT_NONCHR:%.*]], !prof !15
|
||||
; CHECK-NEXT: br i1 [[C1]], label [[BB0_SPLIT:%.*]], label [[BB0_SPLIT_NONCHR:%.*]], !prof [[PROF15]]
|
||||
; CHECK: bb0.split:
|
||||
; CHECK-NEXT: [[V299:%.*]] = mul i64 [[V2]], 7860086430977039991
|
||||
; CHECK-NEXT: store i64 [[V299]], i64* [[J:%.*]], align 4
|
||||
@ -2490,14 +2490,14 @@ define void @test_chr_24(i32* %i) !prof !14 {
|
||||
; CHECK-NEXT: [[TMP0:%.*]] = load i32, i32* [[I:%.*]], align 4
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 1
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB1:%.*]], label [[BB0:%.*]], !prof !20
|
||||
; CHECK-NEXT: br i1 [[TMP2]], label [[BB1:%.*]], label [[BB0:%.*]], !prof [[PROF20:![0-9]+]]
|
||||
; CHECK: bb0:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB1]]
|
||||
; CHECK: bb1:
|
||||
; CHECK-NEXT: [[TMP3:%.*]] = and i32 [[TMP0]], 2
|
||||
; CHECK-NEXT: [[TMP4:%.*]] = icmp eq i32 [[TMP3]], 0
|
||||
; CHECK-NEXT: br i1 [[TMP4]], label [[BB3:%.*]], label [[BB2:%.*]], !prof !20
|
||||
; CHECK-NEXT: br i1 [[TMP4]], label [[BB3:%.*]], label [[BB2:%.*]], !prof [[PROF20]]
|
||||
; CHECK: bb2:
|
||||
; CHECK-NEXT: call void @foo()
|
||||
; CHECK-NEXT: br label [[BB3]]
|
||||
|
Loading…
Reference in New Issue
Block a user