[llvm] [LV] Change getSmallBestKnownTC to return an ElementCount (NFC) (PR #141793)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 07:51:46 PDT 2025


================
@@ -419,6 +419,12 @@ static bool hasIrregularType(Type *Ty, const DataLayout &DL) {
   return DL.getTypeAllocSizeInBits(Ty) != DL.getTypeSizeInBits(Ty);
 }
 
+/// A version of ScalarEvolution::getSmallConstantTripCount that returns an
+/// ElementCount to include loops whose trip count is a function of vscale.
+ElementCount getSmallConstantTripCount(ScalarEvolution *SE, const Loop *L) {
----------------
david-arm wrote:

Can this be marked `static` or do you expect it to be called from elsewhere?

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


More information about the llvm-commits mailing list