[llvm] [VPlan] Replace EVL branch condition with (branch-on-count AVLNext, 0) (PR #152167)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 21 07:46:49 PDT 2025
================
@@ -2459,6 +2459,20 @@ void VPlanTransforms::canonicalizeEVLLoops(VPlan &Plan) {
VPBasicBlock *HeaderVPBB = EVLPhi->getParent();
VPValue *EVLIncrement = EVLPhi->getBackedgeValue();
+ VPValue *AVL;
+ if (!match(EVLIncrement,
+ m_c_Add(m_ZExtOrSelf(m_EVL(m_VPValue(AVL))), m_Specific(EVLPhi))))
+ llvm_unreachable("Didn't find AVL?");
----------------
fhahn wrote:
hmm this is a bit unusual in the vectorizer code base, would it be much more code if this would be a match & assert + maybe_unusued?
Same below
https://github.com/llvm/llvm-project/pull/152167
More information about the llvm-commits
mailing list