fix code that was accidentally commented out in previous commit
authorSanjay Patel <spatel@rotateright.com>
Tue, 11 Aug 2015 15:08:29 +0000 (15:08 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 11 Aug 2015 15:08:29 +0000 (15:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244610 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/LoopVectorize.cpp

index b001caad514dd5f0ca609b748d16a362543b459e..ad57f0d40b3af65d7a29ee4eae4aa71d9f30724e 100644 (file)
@@ -1718,9 +1718,9 @@ struct LoopVectorize : public FunctionPass {
 
     // 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