Skip to content

Commit dfbd3f3

Browse files
committed
use update_test_checks.py
1 parent d8731d3 commit dfbd3f3

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed
Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,54 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals all --version 6
12
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
23

3-
; CHECK: define i32 @LHSBin(i1 %C) !prof ![[PROF0:[0-9]]]
4-
; CHECK: %V = select i1 %C, i32 1010, i32 20, !prof ![[PROF1:[0-9]]]
54
define i32 @LHSBin(i1 %C) !prof !0 {
5+
; CHECK-LABEL: define i32 @LHSBin(
6+
; CHECK-SAME: i1 [[C:%.*]]) !prof [[PROF0:![0-9]+]] {
7+
; CHECK-NEXT: [[V:%.*]] = select i1 [[C]], i32 1010, i32 20, !prof [[PROF1:![0-9]+]]
8+
; CHECK-NEXT: ret i32 [[V]]
9+
;
610
%A = select i1 %C, i32 1000, i32 10, !prof !1
711
%V = add i32 %A, 10
812
ret i32 %V
913
}
1014

11-
; CHECK: define i32 @RHSBin(i1 %C) !prof ![[PROF0]]
12-
; CHECK: %V = select i1 %C, i32 1010, i32 20, !prof ![[PROF1]]
1315
define i32 @RHSBin(i1 %C) !prof !0 {
16+
; CHECK-LABEL: define i32 @RHSBin(
17+
; CHECK-SAME: i1 [[C:%.*]]) !prof [[PROF0]] {
18+
; CHECK-NEXT: [[V:%.*]] = select i1 [[C]], i32 1010, i32 20, !prof [[PROF1]]
19+
; CHECK-NEXT: ret i32 [[V]]
20+
;
1421
%A = select i1 %C, i32 1000, i32 10, !prof !1
1522
%V = add i32 10, %A
1623
ret i32 %V;
1724
}
1825

19-
; CHECK: define i32 @BothBin(i1 %C) !prof ![[PROF0]]
20-
; CHECK: %V = select i1 %C, i32 2000, i32 20, !prof ![[PROF1]]
2126
define i32 @BothBin(i1 %C) !prof !0 {
27+
; CHECK-LABEL: define i32 @BothBin(
28+
; CHECK-SAME: i1 [[C:%.*]]) !prof [[PROF0]] {
29+
; CHECK-NEXT: [[V:%.*]] = select i1 [[C]], i32 2000, i32 20, !prof [[PROF1]]
30+
; CHECK-NEXT: ret i32 [[V]]
31+
;
2232
%A = select i1 %C, i32 1000, i32 10, !prof !1
2333
%B = select i1 %C, i32 1000, i32 10, !prof !1
2434
%V = add i32 %A, %B
2535
ret i32 %V;
2636
}
2737

28-
; CHECK: define i32 @NegBin(i1 %C) !prof ![[PROF0]]
29-
; CHECK: %V = select i1 %C, i32 1010, i32 0, !prof ![[PROF1]]
3038
define i32 @NegBin(i1 %C) !prof !0 {
39+
; CHECK-LABEL: define i32 @NegBin(
40+
; CHECK-SAME: i1 [[C:%.*]]) !prof [[PROF0]] {
41+
; CHECK-NEXT: [[V:%.*]] = select i1 [[C]], i32 1010, i32 0, !prof [[PROF1]]
42+
; CHECK-NEXT: ret i32 [[V]]
43+
;
3144
%A = select i1 %C, i32 1000, i32 -10, !prof !1
3245
%V = add i32 %A, 10
3346
ret i32 %V
3447
}
3548

36-
; CHECK: ![[PROF0]] = !{!"function_entry_count", i64 1000}
37-
; CHECK: ![[PROF1]] = !{!"branch_weights", i32 2, i32 3}
3849
!0 = !{!"function_entry_count", i64 1000}
3950
!1 = !{!"branch_weights", i32 2, i32 3}
51+
;.
52+
; CHECK: [[PROF0]] = !{!"function_entry_count", i64 1000}
53+
; CHECK: [[PROF1]] = !{!"branch_weights", i32 2, i32 3}
54+
;.

0 commit comments

Comments
 (0)