SLPVectorizer: fix build problem in Release configuration

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214496 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Erik Eckstein 2014-08-01 09:47:38 +00:00
parent 956268f9dc
commit 5e2214cca6

View File

@ -642,8 +642,10 @@ private:
bool IsScheduled; bool IsScheduled;
}; };
#ifndef NDEBUG
friend raw_ostream &operator<<(raw_ostream &os, friend raw_ostream &operator<<(raw_ostream &os,
const BoUpSLP::ScheduleData &SD); const BoUpSLP::ScheduleData &SD);
#endif
/// Contains all scheduling data for a basic block. /// Contains all scheduling data for a basic block.
/// ///
@ -827,11 +829,13 @@ private:
/// Instruction builder to construct the vectorized tree. /// Instruction builder to construct the vectorized tree.
IRBuilder<> Builder; IRBuilder<> Builder;
}; };
#ifndef NDEBUG
raw_ostream &operator<<(raw_ostream &os, const BoUpSLP::ScheduleData &SD) { raw_ostream &operator<<(raw_ostream &os, const BoUpSLP::ScheduleData &SD) {
SD.dump(os); SD.dump(os);
return os; return os;
} }
#endif
void BoUpSLP::buildTree(ArrayRef<Value *> Roots, void BoUpSLP::buildTree(ArrayRef<Value *> Roots,
ArrayRef<Value *> UserIgnoreLst) { ArrayRef<Value *> UserIgnoreLst) {