[llvm] r362762 - [LV] Fix -Wunused-function after r362736
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 18:48:27 PDT 2019
Author: maskray
Date: Thu Jun 6 18:48:26 2019
New Revision: 362762
URL: http://llvm.org/viewvc/llvm-project?rev=362762&view=rev
Log:
[LV] Fix -Wunused-function after r362736
Modified:
llvm/trunk/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp?rev=362762&r1=362761&r2=362762&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp Thu Jun 6 18:48:26 2019
@@ -47,6 +47,7 @@ static const unsigned MaxInterleaveFacto
namespace llvm {
+#ifndef NDEBUG
static void debugVectorizationFailure(const StringRef DebugMsg,
Instruction *I) {
dbgs() << "LV: Not vectorizing: " << DebugMsg;
@@ -56,6 +57,7 @@ static void debugVectorizationFailure(co
dbgs() << '.';
dbgs() << '\n';
}
+#endif
OptimizationRemarkAnalysis createLVMissedAnalysis(const char *PassName,
StringRef RemarkName,
More information about the llvm-commits
mailing list