Skip to content

Commit 9f648ec

Browse files
committed
apply comment
1 parent 6306192 commit 9f648ec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8145,14 +8145,13 @@ void BoUpSLP::buildTree_rec(ArrayRef<Value *> VL, unsigned Depth,
81458145
// a load), in which case peek through to include it in the tree, without
81468146
// ballooning over-budget.
81478147
if (Depth >= RecursionMaxDepth &&
8148-
!(S.getMainOp() && isa<Instruction>(S.getMainOp()) && !S.isAltShuffle() &&
8149-
VL.size() >= 4 &&
8148+
!(S.getMainOp() && !S.isAltShuffle() && VL.size() >= 4 &&
81508149
(match(S.getMainOp(), m_Load(m_Value())) ||
81518150
all_of(VL, [&S](const Value *I) {
81528151
return match(I,
81538152
m_OneUse(m_ZExtOrSExt(m_OneUse(m_Load(m_Value()))))) &&
81548153
cast<Instruction>(I)->getOpcode() ==
8155-
cast<Instruction>(S.getMainOp())->getOpcode();
8154+
S.getMainOp()->getOpcode();
81568155
})))) {
81578156
LLVM_DEBUG(dbgs() << "SLP: Gathering due to max recursion depth.\n");
81588157
if (TryToFindDuplicates(S))

0 commit comments

Comments
 (0)