Skip to content

Commit 7e2b5e2

Browse files
committed
[LV] Move reportVectorizationInfo to LoopVectorize.cpp (NFC)
The function is only used in LoopVectorize.cpp, no need to define it in header.
1 parent 30cc12c commit 7e2b5e2

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

llvm/include/llvm/Transforms/Vectorize/LoopVectorize.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,6 @@ void reportVectorizationFailure(const StringRef DebugMsg,
207207
const StringRef OREMsg, const StringRef ORETag,
208208
OptimizationRemarkEmitter *ORE, Loop *TheLoop, Instruction *I = nullptr);
209209

210-
/// Reports an informative message: print \p Msg for debugging purposes as well
211-
/// as an optimization remark. Uses either \p I as location of the remark, or
212-
/// otherwise \p TheLoop.
213-
void reportVectorizationInfo(const StringRef OREMsg, const StringRef ORETag,
214-
OptimizationRemarkEmitter *ORE, Loop *TheLoop,
215-
Instruction *I = nullptr);
216-
217210
} // end namespace llvm
218211

219212
#endif // LLVM_TRANSFORMS_VECTORIZE_LOOPVECTORIZE_H

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,9 +986,12 @@ void reportVectorizationFailure(const StringRef DebugMsg,
986986
<< "loop not vectorized: " << OREMsg);
987987
}
988988

989-
void reportVectorizationInfo(const StringRef Msg, const StringRef ORETag,
989+
/// Reports an informative message: print \p Msg for debugging purposes as well
990+
/// as an optimization remark. Uses either \p I as location of the remark, or
991+
/// otherwise \p TheLoop.
992+
static void reportVectorizationInfo(const StringRef Msg, const StringRef ORETag,
990993
OptimizationRemarkEmitter *ORE, Loop *TheLoop,
991-
Instruction *I) {
994+
Instruction *I = nullptr) {
992995
LLVM_DEBUG(debugVectorizationMessage("", Msg, I));
993996
LoopVectorizeHints Hints(TheLoop, true /* doesn't matter */, *ORE);
994997
ORE->emit(

0 commit comments

Comments
 (0)