[llvm] [VPlan] Manage Sentinel value for FindLastIV in VPlan. (PR #142291)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 13 13:53:24 PDT 2025


================
@@ -7266,9 +7266,11 @@ static void fixReductionScalarResumeWhenVectorizingEpilog(
     using namespace llvm::PatternMatch;
     Value *Cmp, *OrigResumeV, *CmpOp;
----------------
ayalz wrote:

`Value *Sentinel = ‏EpiRedResult->getOperand(2)->getLiveInIRValue();`

Perhaps worth a `Value *vputils::getSentinel(VPInstruction*)`?

https://github.com/llvm/llvm-project/pull/142291


More information about the llvm-commits mailing list