Skip to content

Commit 171b599

Browse files
committed
Address review comments
1 parent 479784b commit 171b599

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/test/Transforms/LoopVectorize/check-prof-info.ll

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
88
@b = global [1024 x i32] zeroinitializer, align 16
99

1010
; Check correctness of profile info for vectorization without epilog.
11-
; Function Attrs: nofree norecurse nounwind uwtable
1211
define void @_Z3foov() {
1312
; CHECK-LABEL: @_Z3foov(
1413
; CHECK: entry:
@@ -58,11 +57,10 @@ for.body: ; preds = %for.body, %entry
5857
store i32 %add, ptr %arrayidx2, align 4
5958
%iv.next = add nuw nsw i64 %iv, 1
6059
%exitcond = icmp eq i64 %iv.next, 1024
61-
br i1 %exitcond, label %for.cond.cleanup, label %for.body, !prof !6
60+
br i1 %exitcond, label %for.cond.cleanup, label %for.body, !prof !0
6261
}
6362

6463
; Check correctness of profile info for vectorization with epilog.
65-
; Function Attrs: nofree norecurse nounwind uwtable
6664
define void @_Z3foo2v() {
6765
; CHECK-LABEL: @_Z3foo2v(
6866
; CHECK: entry:
@@ -112,9 +110,9 @@ for.body: ; preds = %for.body, %entry
112110
store i32 %add, ptr %arrayidx2, align 4
113111
%iv.next = add nuw nsw i64 %iv, 1
114112
%exitcond = icmp eq i64 %iv.next, 1027
115-
br i1 %exitcond, label %for.cond.cleanup, label %for.body, !prof !7
113+
br i1 %exitcond, label %for.cond.cleanup, label %for.body, !prof !1
116114
}
117115

118116

119-
!6 = !{!"branch_weights", i32 1, i32 1023}
120-
!7 = !{!"branch_weights", i32 1, i32 1026}
117+
!0 = !{!"branch_weights", i32 1, i32 1023}
118+
!1 = !{!"branch_weights", i32 1, i32 1026}

0 commit comments

Comments
 (0)