[llvm] [VPlan] Try to hoist Previous (and operands), if sinking fails for FORs. (PR #108945)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 11:29:55 PDT 2024
================
@@ -36,11 +36,13 @@ struct VPlanTransforms {
GetIntOrFpInductionDescriptor,
ScalarEvolution &SE, const TargetLibraryInfo &TLI);
- /// Sink users of fixed-order recurrences after the recipe defining their
- /// previous value. Then introduce FirstOrderRecurrenceSplice VPInstructions
- /// to combine the value from the recurrence phis and previous values. The
- /// current implementation assumes all users can be sunk after the previous
- /// value, which is enforced by earlier legality checks.
+ /// Try to move users of fixed-order recurrences after the recipe defining
+ /// their previous value, either by sinking them or hoisting the recipe
+ /// defining their previous value (and its operands). Then introduce
+ /// FirstOrderRecurrenceSplice VPInstructions to combine the value from the
+ /// recurrence phis and previous values. The current implementation assumes
+ /// all users can be sunk after the previous value, which is enforced by
----------------
fhahn wrote:
Done thanks!
https://github.com/llvm/llvm-project/pull/108945
More information about the llvm-commits
mailing list