Skip to content

Commit 86515c5

Browse files
author
GYT
committed
More reviewer suggestions, pt1
1 parent dcd926f commit 86515c5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class LoopVectorizeHints {
199199

200200
/// Reports a condition where loop vectorization is disallowed: prints
201201
/// \p DebugMsg for debugging purposes along with the corresponding
202-
/// optimization remark \p RemarkName , with \p RemarkMsg as the user-facing
202+
/// optimization remark \p RemarkName, with \p RemarkMsg as the user-facing
203203
/// message. The loop \p L is used for the location of the remark.
204204
void reportDisallowedVectorization(const StringRef DebugMsg,
205205
const StringRef RemarkName,

llvm/test/Transforms/LoopVectorize/diag-disabled-vectorization-msgs.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@
4141
; FORCEDONLY-SAME: loop not vectorized: only vectorizing loops that explicitly request it
4242
; FORCEDONLY: LV: Loop hints prevent vectorization
4343

44-
define i64 @disabled_loop_vectorization(ptr %src) {
44+
define void @disabled_loop_vectorization(ptr %src) {
4545
entry:
4646
br label %loop
4747

4848
loop:
4949
%iv = phi i64 [ 0, %entry ], [ %inc, %loop ]
5050
%arrayidx = getelementptr inbounds nuw double, ptr %src, i64 %iv
51-
store double 1.234e+0, ptr %arrayidx, align 8
51+
store double 0, ptr %arrayidx, align 8
5252
%inc = add nuw nsw i64 %iv, 1
5353
%exitcond.not = icmp eq i64 %inc, 15
5454
br i1 %exitcond.not, label %exit, label %loop, !llvm.loop !0
5555

5656
exit:
57-
ret i64 0
57+
ret void
5858
}
5959

6060
!0 = distinct !{!0, !1}

0 commit comments

Comments
 (0)