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

Nadav Rotem nrotem at apple.com
Wed Dec 12 11:39:36 PST 2012


Author: nadav
Date: Wed Dec 12 13:39:36 2012
New Revision: 170005

URL: http://llvm.org/viewvc/llvm-project?rev=170005&view=rev
Log:
Fix indentation.

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=170005&r1=170004&r2=170005&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Wed Dec 12 13:39:36 2012
@@ -95,11 +95,10 @@
     // Check the function attribues to find out if this function should be
     // optimized for size.
     Function *F = L->getHeader()->getParent();
-    bool OptForSize =
-    F->getFnAttributes().hasAttribute(Attributes::OptimizeForSize);
+    Attributes::AttrVal SzAttr= Attributes::OptimizeForSize;
+    bool OptForSize = F->getFnAttributes().hasAttribute(SzAttr);
 
-    unsigned VF = CM.selectVectorizationFactor(OptForSize,
-                                               VectorizationFactor);
+    unsigned VF = CM.selectVectorizationFactor(OptForSize, VectorizationFactor);
 
     if (VF == 1) {
       DEBUG(dbgs() << "LV: Vectorization is possible but not beneficial.\n");





More information about the llvm-commits mailing list