[llvm] r214496 - SLPVectorizer: fix build problem in Release configuration
Erik Eckstein
eeckstein at apple.com
Fri Aug 1 02:47:38 PDT 2014
Author: eeckstein
Date: Fri Aug 1 04:47:38 2014
New Revision: 214496
URL: http://llvm.org/viewvc/llvm-project?rev=214496&view=rev
Log:
SLPVectorizer: fix build problem in Release configuration
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=214496&r1=214495&r2=214496&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Fri Aug 1 04:47:38 2014
@@ -642,8 +642,10 @@ private:
bool IsScheduled;
};
+#ifndef NDEBUG
friend raw_ostream &operator<<(raw_ostream &os,
const BoUpSLP::ScheduleData &SD);
+#endif
/// Contains all scheduling data for a basic block.
///
@@ -827,11 +829,13 @@ private:
/// Instruction builder to construct the vectorized tree.
IRBuilder<> Builder;
};
-
+
+#ifndef NDEBUG
raw_ostream &operator<<(raw_ostream &os, const BoUpSLP::ScheduleData &SD) {
SD.dump(os);
return os;
}
+#endif
void BoUpSLP::buildTree(ArrayRef<Value *> Roots,
ArrayRef<Value *> UserIgnoreLst) {
More information about the llvm-commits
mailing list