Skip to content

Commit 1c211bc

Browse files
authored
[LV] Remove unused configuration option (#82955)
Recent set of changes (PR #67725) in loop interleaving algorithm caused removal of the loop trip count threshold for allowing interleaving. Therefore configuration option interleave-small-loop-scalar-reduction is no longer needed.
1 parent 6101cf3 commit 1c211bc

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

+1-8
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,6 @@ static cl::opt<bool> EnableLoadStoreRuntimeInterleave(
315315
cl::desc(
316316
"Enable runtime interleaving until load/store ports are saturated"));
317317

318-
/// Interleave small loops with scalar reductions.
319-
static cl::opt<bool> InterleaveSmallLoopScalarReduction(
320-
"interleave-small-loop-scalar-reduction", cl::init(false), cl::Hidden,
321-
cl::desc("Enable interleaving for loops with small iteration counts that "
322-
"contain scalar reductions to expose ILP."));
323-
324318
/// The number of stores in a loop that are allowed to need predication.
325319
static cl::opt<unsigned> NumberOfStoresToPredicate(
326320
"vectorize-num-stores-pred", cl::init(1), cl::Hidden,
@@ -5495,8 +5489,7 @@ LoopVectorizationCostModel::selectInterleaveCount(ElementCount VF,
54955489

54965490
// If there are scalar reductions and TTI has enabled aggressive
54975491
// interleaving for reductions, we will interleave to expose ILP.
5498-
if (InterleaveSmallLoopScalarReduction && VF.isScalar() &&
5499-
AggressivelyInterleaveReductions) {
5492+
if (VF.isScalar() && AggressivelyInterleaveReductions) {
55005493
LLVM_DEBUG(dbgs() << "LV: Interleaving to expose ILP.\n");
55015494
// Interleave no less than SmallIC but not as aggressive as the normal IC
55025495
// to satisfy the rare situation when resources are too limited.

llvm/test/Transforms/LoopVectorize/PowerPC/interleave_IC.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt < %s -passes=loop-vectorize -S -mcpu=pwr9 -interleave-small-loop-scalar-reduction=true 2>&1 | FileCheck %s
2-
; RUN: opt < %s -passes='loop-vectorize' -S -mcpu=pwr9 -interleave-small-loop-scalar-reduction=true 2>&1 | FileCheck %s
1+
; RUN: opt < %s -passes=loop-vectorize -S -mcpu=pwr9 2>&1 | FileCheck %s
2+
; RUN: opt < %s -passes='loop-vectorize' -S -mcpu=pwr9 2>&1 | FileCheck %s
33

44
; CHECK-LABEL: vector.body
55
; CHECK: load double, ptr

0 commit comments

Comments
 (0)