[VPlan] Print live-in backedge taken count as part of plan.
authorFlorian Hahn <flo@fhahn.com>
Mon, 11 Oct 2021 18:36:23 +0000 (19:36 +0100)
committerFlorian Hahn <flo@fhahn.com>
Mon, 11 Oct 2021 19:13:01 +0000 (20:13 +0100)
commitab33427c86825a88dff612f4ae29f07c601321d4
treee75c95128b80ae56ce5ce2013c99983d321a5d87
parenta6c9506365fb4027f5403e2e39301ad8e0668267
[VPlan] Print live-in backedge taken count as part of plan.

At the moment, a VPValue is created for the backedge-taken count, which
is used by some recipes. To make it easier to identify the operands of
recipes using the backedge-taken count, print it at the beginning of the
VPlan if it is used.

Reviewed By: a.elovikov

Differential Revision: https://reviews.llvm.org/D111298
llvm/lib/Transforms/Vectorize/VPlan.cpp
llvm/test/Transforms/LoopVectorize/first-order-recurrence-sink-replicate-region.ll
llvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll