[PATCH] D50480: [LV] Vectorizing loops of arbitrary trip count without remainder under opt for size

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 14 15:25:55 PDT 2018


reames added inline comments.


================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:4948
 
-  // If we don't know the precise trip count, don't try to vectorize.
-  if (TC < 2) {
-    ORE->emit(
-        createMissedAnalysis("UnknownLoopCountComplexCFG")
-        << "unable to calculate the loop count due to complex control flow");
-    LLVM_DEBUG(
-        dbgs() << "LV: Aborting. A tail loop is required with -Os/-Oz.\n");
+  if (TC == 1) {
+    LLVM_DEBUG(dbgs() << "LV: Aborting, single iteration (non) loop.\n");
----------------
There's a mix of seemingly unrelated changes here.  This is one example.  It would be good to land these separately.  


Repository:
  rL LLVM

https://reviews.llvm.org/D50480





More information about the llvm-commits mailing list