Skip to content

Commit fe5532a

Browse files
committed
nfc, early break if it is not a reverse
1 parent 1afbdb5 commit fe5532a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2625,11 +2625,13 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
26252625
// address uses EVL instead of VF.
26262626
// TODO: Extend conversion along the def-use/use-def chain, as reverse
26272627
// operations may be eliminated or moved in the future.
2628-
if (auto *MemR = dyn_cast<VPWidenMemoryRecipe>(EVLRecipe);
2629-
MemR && match(MemR->getAddr(),
2630-
m_VectorEndPointer(m_VPValue(), m_Specific(&EVL)))) {
2628+
if (auto *MemR = dyn_cast<VPWidenMemoryRecipe>(EVLRecipe)) {
2629+
if (!match(MemR->getAddr(),
2630+
m_VectorEndPointer(m_VPValue(), m_Specific(&EVL))))
2631+
continue;
26312632
assert(MemR->isReverse() &&
26322633
"Only reverse access uses VPVectorEndPointerRecipe as address");
2634+
26332635
VPRecipeBase *Candidate = nullptr;
26342636
if (auto *LoadR = dyn_cast<VPWidenLoadEVLRecipe>(MemR)) {
26352637
assert(LoadR->getNumUsers() == 1 &&

0 commit comments

Comments
 (0)