LoopVectorizer: When -Os is used, vectorize only loops that dont require a tail loop...
[oota-llvm.git] / lib / Transforms / Vectorize / LoopVectorize.h
index 9d6d80e22b3e7c02c06aea7920dc49128d36224a..e5a525960599ac266cea673d05a215bd17ce64ea 100644 (file)
@@ -420,10 +420,11 @@ public:
                              const VectorTargetTransformInfo *Vtti):
   TheLoop(Lp), SE(Se), Legal(Leg), VTTI(Vtti) { }
 
-  /// Returns the most profitable vectorization factor for the loop that is
-  /// smaller or equal to the VF argument. This method checks every power
-  /// of two up to VF.
-  unsigned findBestVectorizationFactor(unsigned VF = MaxVectorSize);
+  /// Returns the most profitable vectorization factor in powers of two.
+  /// This method checks every power of two up to VF. If UserVF is not ZERO
+  /// then this vectorization factor will be selected if vectorization is
+  /// possible.
+  unsigned selectVectorizationFactor(bool OptForSize, unsigned UserVF);
 
 private:
   /// Returns the expected execution cost. The unit of the cost does