[llvm] r280263 - [SLP] Update the debug based on Michael's suggestion.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 10:41:13 PDT 2016


Author: mcrosier
Date: Wed Aug 31 12:41:12 2016
New Revision: 280263

URL: http://llvm.org/viewvc/llvm-project?rev=280263&view=rev
Log:
[SLP] Update the debug based on Michael's suggestion.

Passing the types/opcode check still doesn't guarantee we'll actually vectorize.
Therefore, just make it clear we're attempting to vectorize.

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=280263&r1=280262&r2=280263&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Wed Aug 31 12:41:12 2016
@@ -3855,6 +3855,9 @@ bool SLPVectorizerPass::tryToVectorizeLi
   if (VL.size() < 2)
     return false;
 
+  DEBUG(dbgs() << "SLP: Trying to vectorize a list of length = " << VL.size()
+               << ".\n");
+
   // Check that all of the parts are scalar instructions of the same type.
   Instruction *I0 = dyn_cast<Instruction>(VL[0]);
   if (!I0)
@@ -3876,8 +3879,6 @@ bool SLPVectorizerPass::tryToVectorizeLi
       return false;
   }
 
-  DEBUG(dbgs() << "SLP: Vectorizing a list of length = " << VL.size() << ".\n");
-
   bool Changed = false;
 
   // Keep track of values that were deleted by vectorizing in the loop below.




More information about the llvm-commits mailing list