[llvm] [NFC][LLVM][LoopVectorize] Change getSmallBestKnownTC to return an ElementCount. (PR #141793)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 05:34:10 PDT 2025


================
@@ -823,6 +823,10 @@ class ScalarEvolution {
   /// than the backedge taken count for the loop.
   LLVM_ABI unsigned getSmallConstantTripCount(const Loop *L);
 
+  /// A version of getSmallConstantTripCount that returns as an ElementCount to
+  /// include loops whose trip count is a function of llvm.vscale().
+  ElementCount getSmallConstantRuntimeTripCount(const Loop *L);
----------------
david-arm wrote:

I think this need the same `LLVM_ABI` prefix as above.

https://github.com/llvm/llvm-project/pull/141793


More information about the llvm-commits mailing list