[llvm] d80a729 - [LoopVectorizer] Rename variable (NFC). (#180585)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 08:11:48 PST 2026
Author: Jonas Paulsson
Date: 2026-02-10T10:11:43-06:00
New Revision: d80a7295726e4f1d401721155b64113a8ff5927a
URL: https://github.com/llvm/llvm-project/commit/d80a7295726e4f1d401721155b64113a8ff5927a
DIFF: https://github.com/llvm/llvm-project/commit/d80a7295726e4f1d401721155b64113a8ff5927a.diff
LOG: [LoopVectorizer] Rename variable (NFC). (#180585)
Since TargetTransformInfo::enableAggressiveInterleaving(bool
HasReductions) takes the HasReductions argument, the LoopVectorizer
should save its returned value in a variable called AggressivelyInterleave
instead of AggressivelyInterleaveReductions.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 5404e98bae14f..164d74f1a440d 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4858,7 +4858,7 @@ LoopVectorizationPlanner::selectInterleaveCount(VPlan &Plan, ElementCount VF,
LLVM_DEBUG(dbgs() << "LV: Loop cost is " << LoopCost << '\n'
<< "LV: IC is " << IC << '\n'
<< "LV: VF is " << VF << '\n');
- const bool AggressivelyInterleaveReductions =
+ const bool AggressivelyInterleave =
TTI.enableAggressiveInterleaving(HasReductions);
if (!ScalarInterleavingRequiresRuntimePointerCheck &&
!ScalarInterleavingRequiresPredication && LoopCost < SmallLoopCost) {
@@ -4959,7 +4959,7 @@ LoopVectorizationPlanner::selectInterleaveCount(VPlan &Plan, ElementCount VF,
// If there are scalar reductions and TTI has enabled aggressive
// interleaving for reductions, we will interleave to expose ILP.
- if (VF.isScalar() && AggressivelyInterleaveReductions) {
+ if (VF.isScalar() && AggressivelyInterleave) {
LLVM_DEBUG(dbgs() << "LV: Interleaving to expose ILP.\n");
// Interleave no less than SmallIC but not as aggressive as the normal IC
// to satisfy the rare situation when resources are too limited.
@@ -4972,7 +4972,7 @@ LoopVectorizationPlanner::selectInterleaveCount(VPlan &Plan, ElementCount VF,
// Interleave if this is a large loop (small loops are already dealt with by
// this point) that could benefit from interleaving.
- if (AggressivelyInterleaveReductions) {
+ if (AggressivelyInterleave) {
LLVM_DEBUG(dbgs() << "LV: Interleaving to expose ILP.\n");
return IC;
}
More information about the llvm-commits
mailing list