summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-06-07 01:48:26 +0000
committerFangrui Song <maskray@google.com>2019-06-07 01:48:26 +0000
commit19189993c909653db751dd46e6ce0ae3e73d9f63 (patch)
treeab41ab0742e945d82cf9f119b8001b2fc211e4b9 /llvm/lib
parentc0edb8f5cf2f19496e44f59dce33d3e5695f5bf6 (diff)
downloadbcm5719-llvm-19189993c909653db751dd46e6ce0ae3e73d9f63.tar.gz
bcm5719-llvm-19189993c909653db751dd46e6ce0ae3e73d9f63.zip
[LV] Fix -Wunused-function after r362736
llvm-svn: 362762
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
index 05a86027782..e5713c4355f 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
@@ -47,6 +47,7 @@ static const unsigned MaxInterleaveFactor = 16;
namespace llvm {
+#ifndef NDEBUG
static void debugVectorizationFailure(const StringRef DebugMsg,
Instruction *I) {
dbgs() << "LV: Not vectorizing: " << DebugMsg;
@@ -56,6 +57,7 @@ static void debugVectorizationFailure(const StringRef DebugMsg,
dbgs() << '.';
dbgs() << '\n';
}
+#endif
OptimizationRemarkAnalysis createLVMissedAnalysis(const char *PassName,
StringRef RemarkName,
OpenPOWER on IntegriCloud