[llvm] [SLP][NFC] Use BoUpSLP::getNumberOfParts() where appropriate (PR #225995)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 04:07:08 PDT 2026


================
@@ -26516,14 +26510,12 @@ void BoUpSLP::optimizeGatherSequence() {
     // Check if the last undefs actually change the final number of used vector
     // registers.
     return SM1.size() - LastUndefsCnt > 1 &&
-           slpvectorizer::getNumberOfParts(*TTI, SI1->getType(),
-                                           SI1->getType()->getElementType(),
-                                           SLPReVec) ==
-               slpvectorizer::getNumberOfParts(
-                   *TTI,
+           this->getNumberOfParts(SI1->getType(),
+                                  SI1->getType()->getElementType()) ==
+               this->getNumberOfParts(
----------------
alexey-bataev wrote:

Drop `this->`

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


More information about the llvm-commits mailing list