[PATCH] D24090: [SLP] Sink debug after checking for matching types/opcode.

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rL280260: [SLP] Sink debug after checking for matching types/opcode. (authored by mcrosier).

Changed prior to commit:
  https://reviews.llvm.org/D24090?vs=69876&id=69880#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D24090

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

Index: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -3855,8 +3855,6 @@
   if (VL.size() < 2)
     return false;
 
-  DEBUG(dbgs() << "SLP: Vectorizing 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)
@@ -3878,6 +3876,8 @@
       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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24090.69880.patch
Type: text/x-patch
Size: 773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160831/1e223fb5/attachment.bin>


More information about the llvm-commits mailing list