[PATCH] D114528: [LV] Make sure VF doesn't exceed compile time known TC

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 3 02:54:00 PST 2021


fhahn added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:6085
+                         "exceeding the constant trip count: "
                       << ConstTripCount << "\n");
+    return ElementCount::getFixed(PowerOf2Floor(ConstTripCount));
----------------
Shouldn't this be `PowerOf2Floor(ConstTripCount)`? 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114528/new/

https://reviews.llvm.org/D114528



More information about the llvm-commits mailing list