File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2459,11 +2459,10 @@ void VPlanTransforms::canonicalizeEVLLoops(VPlan &Plan) {
24592459
24602460 VPBasicBlock *HeaderVPBB = EVLPhi->getParent ();
24612461 VPValue *EVLIncrement = EVLPhi->getBackedgeValue ();
2462- VPValue *AVL, *EVL ;
2462+ VPValue *AVL;
24632463 if (!match (EVLIncrement,
2464- m_c_Add (m_ZExtOrSelf (m_VPValue (EVL)), m_Specific (EVLPhi))) ||
2465- !match (EVL, m_EVL (m_VPValue (AVL))))
2466- llvm_unreachable (" Didn't find EVL?" );
2464+ m_c_Add (m_ZExtOrSelf (m_EVL (m_VPValue (AVL))), m_Specific (EVLPhi))))
2465+ llvm_unreachable (" Didn't find AVL?" );
24672466
24682467 // The AVL may be capped to a safe distance.
24692468 VPValue *SafeAVL;
@@ -2472,8 +2471,7 @@ void VPlanTransforms::canonicalizeEVLLoops(VPlan &Plan) {
24722471
24732472 VPValue *AVLNext;
24742473 if (!match (AVL, m_VPInstruction<Instruction::PHI>(
2475- m_Specific (Plan.getTripCount ()), m_VPValue (AVLNext))) ||
2476- !match (AVLNext, m_Sub (m_Specific (AVL), m_ZExtOrSelf (m_Specific (EVL)))))
2474+ m_Specific (Plan.getTripCount ()), m_VPValue (AVLNext))))
24772475 llvm_unreachable (" Didn't find AVL backedge?" );
24782476
24792477 // Convert EVLPhi to concrete recipe.
You can’t perform that action at this time.
0 commit comments