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

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 19:05:01 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-vectorizers

Author: Ryan Buchner (bababuck)

<details>
<summary>Changes</summary>

Caches the results for better performance rather than directly calling slpvectorizer::getNumberOrParts().

Small improvement in compile time.

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


1 Files Affected:

- (modified) llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp (+19-29) 


``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````

</details>


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


More information about the llvm-commits mailing list