OSDN Git Service

SLPVectorizer: fix build problem in Release configuration
authorErik Eckstein <eeckstein@apple.com>
Fri, 1 Aug 2014 09:47:38 +0000 (09:47 +0000)
committerErik Eckstein <eeckstein@apple.com>
Fri, 1 Aug 2014 09:47:38 +0000 (09:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214496 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index a9e6ffe..cb9def2 100644 (file)
@@ -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) {