[llvm-branch-commits] [llvm] [VPlan] Explicitly handle scalar pointer inductions. (PR #80273)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Feb 5 07:31:44 PST 2024


================
@@ -2503,6 +2504,12 @@ class VPDerivedIVRecipe : public VPSingleDefRecipe {
             dyn_cast_or_null<FPMathOperator>(IndDesc.getInductionBinOp()),
             Start, CanonicalIV, Step) {}
 
+  VPDerivedIVRecipe(InductionDescriptor::InductionKind Kind, VPValue *Start,
+                    VPCanonicalIVPHIRecipe *CanonicalIV, VPValue *Step,
+                    FPMathOperator *FPBinOp)
----------------
ayalz wrote:

nit: this is identical to the private constructor above, except for accepting a non-const FPBinOp?

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


More information about the llvm-branch-commits mailing list