diff options
author | Fangrui Song <maskray@google.com> | 2019-06-07 01:48:26 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-06-07 01:48:26 +0000 |
commit | 19189993c909653db751dd46e6ce0ae3e73d9f63 (patch) | |
tree | ab41ab0742e945d82cf9f119b8001b2fc211e4b9 /llvm/lib | |
parent | c0edb8f5cf2f19496e44f59dce33d3e5695f5bf6 (diff) | |
download | bcm5719-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.cpp | 2 |
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, |