[llvm] [VPlan] Add ExitingIVValue VPInstruction. (PR #175651)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 29 02:12:05 PST 2026
================
@@ -996,8 +997,9 @@ static VPValue *optimizeEarlyExitInductionUser(VPlan &Plan,
static VPValue *optimizeLatchExitInductionUser(
VPlan &Plan, VPTypeAnalysis &TypeInfo, VPBlockBase *PredVPBB, VPValue *Op,
DenseMap<VPValue *, VPValue *> &EndValues, PredicatedScalarEvolution &PSE) {
- VPValue *Incoming;
- if (!match(Op, m_ExtractLastLaneOfLastPart(m_VPValue(Incoming))))
+ VPValue *Incoming = Op;
+ if (!match(Op, m_CombineOr(m_FinalIVValue(m_VPValue(), m_VPValue()),
+ m_ExtractLastLaneOfLastPart(m_VPValue(Incoming)))))
----------------
ayalz wrote:
Good to note.
https://github.com/llvm/llvm-project/pull/175651
More information about the llvm-commits
mailing list