[PATCH] D22952: [LoopVectorize] Detect loops in the innermost loop before creating InnerLoopVectorizer

Adam Nemet via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 12 15:38:09 PDT 2016


anemet accepted this revision.
anemet added a comment.
This revision is now accepted and ready to land.

LGTM with the change below.


================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:4630-4634
@@ -4551,7 +4629,7 @@
 
   // We can only vectorize innermost loops.
   if (!TheLoop->empty()) {
     emitAnalysis(VectorizationReport() << "loop is not the innermost loop");
     return false;
   }
 
----------------
Please add a FIXME, that this code is dead too as we discovered (unless you will remove it in a quick follow-up).


https://reviews.llvm.org/D22952





More information about the llvm-commits mailing list