[llvm] [VPlan] Make canonical IV part of the region (PR #156262)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 22 08:54:26 PST 2026
================
@@ -835,6 +840,11 @@ void VPRegionBlock::print(raw_ostream &O, const Twine &Indent,
VPSlotTracker &SlotTracker) const {
O << Indent << (isReplicator() ? "<xVFxUF> " : "<x1> ") << getName() << ": {";
auto NewIndent = Indent + " ";
+ if (!isReplicator()) {
+ O << '\n';
+ getCanonicalIV()->print(O, SlotTracker);
----------------
ayalz wrote:
nit: below seems clearer for dumping CanIV, should it also replace isReplicator() above?
```suggestion
if (auto *CanIV = getCanonicalIV()) {
O << '\n';
CanIV->print(O, SlotTracker);
```
https://github.com/llvm/llvm-project/pull/156262
More information about the llvm-commits
mailing list