[llvm-commits] [llvm] r172544 - /llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp

Nadav Rotem nrotem at apple.com
Tue Jan 15 10:25:16 PST 2013


Author: nadav
Date: Tue Jan 15 12:25:16 2013
New Revision: 172544

URL: http://llvm.org/viewvc/llvm-project?rev=172544&view=rev
Log:
LoopVectorizer cost model. Honor the user command line flag that selects the vectorization factor even if the target machine does not have any vector registers.

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

Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=172544&r1=172543&r2=172544&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Tue Jan 15 12:25:16 2013
@@ -2633,7 +2633,7 @@
 
   if (MaxVectorSize == 0) {
     DEBUG(dbgs() << "LV: The target has no vector registers.\n");
-    return 1;
+    MaxVectorSize = 1;
   }
 
   assert(MaxVectorSize <= 32 && "Did not expect to pack so many elements"





More information about the llvm-commits mailing list