File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2420,12 +2420,11 @@ void VPlanTransforms::canonicalizeEVLLoops(VPlan &Plan) {
24202420
24212421 // Replace CanonicalIVInc with EVL-PHI increment.
24222422 auto *CanonicalIV = cast<VPPhi>(&*HeaderVPBB->begin ());
2423- assert (
2424- match (CanonicalIV->getIncomingValue (1 ),
2425- m_c_Binary<Instruction::Add>(m_Specific (cast<VPPhi>(CanonicalIV)),
2426- m_Specific (&Plan.getVFxUF ()))) &&
2427- " Unexpected canonical iv" );
24282423 VPValue *Backedge = CanonicalIV->getIncomingValue (1 );
2424+ assert (match (Backedge,
2425+ m_c_Binary<Instruction::Add>(m_Specific (CanonicalIV),
2426+ m_Specific (&Plan.getVFxUF ()))) &&
2427+ " Unexpected canonical iv" );
24292428 Backedge->replaceAllUsesWith (EVLIncrement);
24302429
24312430 // Remove unused phi and increment.
You can’t perform that action at this time.
0 commit comments