SLPVectorizer: fix build problem in Release configuration

llvm-svn: 214496
This commit is contained in:
Erik Eckstein 2014-08-01 09:47:38 +00:00
parent 91af42fb7b
commit 690dd037d9
1 changed files with 5 additions and 1 deletions

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.
/// ///
@ -828,10 +830,12 @@ private:
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) {