[llvm] [VPlan] Add FinalIVValue VPInstruction. (PR #175651)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 27 07:05:53 PST 2026
================
@@ -881,6 +881,7 @@ static void legalizeAndOptimizeInductions(VPlan &Plan) {
/// return null.
static VPWidenInductionRecipe *
getOptimizableIVOf(VPValue *VPV, PredicatedScalarEvolution &PSE) {
+ match(VPV, m_FinalIVValue(m_VPValue(VPV), m_VPValue()));
----------------
fhahn wrote:
With this moved to the caller, this still does exactly what it says in the documentation. There are still some cases where we need this handling, including early exits. Those should probably also be migrated, although better done separately?
https://github.com/llvm/llvm-project/pull/175651
More information about the llvm-commits
mailing list