[llvm] r203366 - Fix build break.

Ahmed Charles ahmedcharles at gmail.com
Sat Mar 8 19:50:36 PST 2014


Author: ace2001ac
Date: Sat Mar  8 21:50:36 2014
New Revision: 203366

URL: http://llvm.org/viewvc/llvm-project?rev=203366&view=rev
Log:
Fix build break.

Modified:
    llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp

Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=203366&r1=203365&r2=203366&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Sat Mar  8 21:50:36 2014
@@ -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);
       }





More information about the llvm-commits mailing list