Skip to content

Commit 1d4c7cb

Browse files
committed
Use m_scev_c_Mul
1 parent 6880028 commit 1d4c7cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4373,8 +4373,7 @@ VectorizationFactor LoopVectorizationPlanner::selectEpilogueVectorizationFactor(
43734373
vputils::getSCEVExprForVPValue(getPlanFor(MainLoopVF).getTripCount(), SE);
43744374
assert(!isa<SCEVCouldNotCompute>(TC) && "Trip count SCEV must be computable");
43754375
const SCEV *KnownMinTC;
4376-
bool ScalableTC = match(TC, m_scev_Mul(m_SCEV(KnownMinTC), m_SCEVVScale())) ||
4377-
match(TC, m_scev_Mul(m_SCEVVScale(), m_SCEV(KnownMinTC)));
4376+
bool ScalableTC = match(TC, m_scev_c_Mul(m_SCEV(KnownMinTC), m_SCEVVScale()));
43784377
// Use versions of TC and VF in which both are either scalable or fixed.
43794378
if (ScalableTC == MainLoopVF.isScalable())
43804379
RemainingIterations =

0 commit comments

Comments
 (0)