diff options
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index a9e6ffe992c..cb9def22542 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -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) { |