[llvm] r244610 - fix code that was accidentally commented out in previous commit

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 08:08:30 PDT 2015


Author: spatel
Date: Tue Aug 11 10:08:29 2015
New Revision: 244610

URL: http://llvm.org/viewvc/llvm-project?rev=244610&view=rev
Log:
fix code that was accidentally commented out in previous commit

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=244610&r1=244609&r2=244610&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Tue Aug 11 10:08:29 2015
@@ -1718,9 +1718,9 @@ struct LoopVectorize : public FunctionPa
 
     // Check the function attributes to find out if this function should be
     // optimized for size.
-    bool OptForSize = Hints.getForce() != LoopVectorizeHints::FK_Enabled/* &&
+    bool OptForSize = Hints.getForce() != LoopVectorizeHints::FK_Enabled &&
                       // FIXME: Use Function::optForSize().
-                      F->hasFnAttribute(Attribute::OptimizeForSize)*/;
+                      F->hasFnAttribute(Attribute::OptimizeForSize);
 
     // Compute the weighted frequency of this loop being executed and see if it
     // is less than 20% of the function entry baseline frequency. Note that we




More information about the llvm-commits mailing list