Fix build break.
authorAhmed Charles <ahmedcharles@gmail.com>
Sun, 9 Mar 2014 03:50:36 +0000 (03:50 +0000)
committerAhmed Charles <ahmedcharles@gmail.com>
Sun, 9 Mar 2014 03:50:36 +0000 (03:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203366 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index f2e629ff6399ec7998f8f84aea71783ccf35ac9c..3aa6b5ae8b1806e196a88f5203008c3a0b7adbab 100644 (file)
@@ -1654,6 +1654,7 @@ Value *BoUpSLP::vectorizeTree() {
 
       Type *Ty = Scalar->getType();
       if (!Ty->isVoidTy()) {
+#ifndef NDEBUG
         for (User *U : Scalar->users()) {
           DEBUG(dbgs() << "SLP: \tvalidating user:" << *U << ".\n");
 
@@ -1662,6 +1663,7 @@ Value *BoUpSLP::vectorizeTree() {
                   (RdxOps && RdxOps->count(U))) &&
                  "Replacing out-of-tree value with undef");
         }
+#endif
         Value *Undef = UndefValue::get(Ty);
         Scalar->replaceAllUsesWith(Undef);
       }