[llvm] [VPlan] Create AVL as a phi from TC -> 0 with EVL tail folding (PR #151481)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 31 03:23:09 PDT 2025
================
@@ -2379,6 +2381,11 @@ bool VPlanTransforms::tryAddExplicitVectorLength(
CanonicalIVIncrement->getDebugLoc(), "index.evl.next");
EVLPhi->addOperand(NextEVLIV);
+ VPValue *NextAVL = Builder.createOverflowingOp(
+ Instruction::Sub, {AVLPhi, OpVPEVL}, {/*hasNUW=*/true, /*hasNSW=*/false},
+ DebugLoc(), "avl.next");
----------------
lukel97 wrote:
Thanks, I didn't realise it was a recent change. I guess we should start using DebugLoc::getCompilerGenerated() in this instance then?
https://github.com/llvm/llvm-project/pull/151481
More information about the llvm-commits
mailing list