summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-04-07 12:46:30 +0000
committerEric Christopher <echristo@gmail.com>2014-04-07 12:46:30 +0000
commitfcd222aa47f8de5565e2ff4108a21b03d245aa74 (patch)
treeca7770fb3f85c74f6b0be49d72e24ff96a49b116 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
parent6ab6a0648bc76d4e0fdc13fcb431747429f346c3 (diff)
downloadbcm5719-llvm-fcd222aa47f8de5565e2ff4108a21b03d245aa74.tar.gz
bcm5719-llvm-fcd222aa47f8de5565e2ff4108a21b03d245aa74.zip
Add NDEBUG markers around debug only function.
llvm-svn: 205706
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index c3b0121e6cf..c5de6bc6bbe 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -470,6 +470,8 @@ static void setDebugLocFromInst(IRBuilder<> &B, const Value *Ptr) {
else
B.SetCurrentDebugLocation(DebugLoc());
}
+
+#ifndef NDEBUG
/// \return string containing a file name and a line # for the given
/// instruction.
static format_object3<const char *, const char *, unsigned>
@@ -489,6 +491,8 @@ getDebugLocString(const Instruction *I) {
const char *FileName = Loc.getFilename().data();
return format("%s/%s:%u", DirName, FileName, LineNo);
}
+#endif
+
/// LoopVectorizationLegality checks if it is legal to vectorize a loop, and
/// to what vectorization factor.
/// This class does not look at the profitability of vectorization, only the
OpenPOWER on IntegriCloud