This is an archive of the discontinued LLVM Phabricator instance.

[VPlan] Print successors of VPRegionBlocks.
ClosedPublic

Authored by fhahn on Jun 2 2021, 5:12 AM.

Details

Summary

The non-DOT printing does not include the successors of VPregionBlocks.
This patch use the same style for printing successors as for
VPBasicBlock.

I think the printing of successors could be a bit improved further, as
at the moment it is hard to ensure a check line matches all successors.
But that can be done as follow-up.

Diff Detail

Event Timeline

fhahn created this revision.Jun 2 2021, 5:12 AM
fhahn requested review of this revision.Jun 2 2021, 5:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2021, 5:12 AM
Herald added a subscriber: vkmr. · View Herald Transcript
Matt added a subscriber: Matt.Jun 2 2021, 6:11 AM
a.elovikov accepted this revision.Jun 2 2021, 8:42 AM

Looks good to me. Thanks for following up on that.

I think the printing of successors could be a bit improved further, as at the moment it is hard to ensure a check line matches all successors.

What do you mean by that?

This revision is now accepted and ready to land.Jun 2 2021, 8:42 AM
fhahn added a comment.Jun 2 2021, 8:47 AM

Looks good to me. Thanks for following up on that.

I think the printing of successors could be a bit improved further, as at the moment it is hard to ensure a check line matches all successors.

What do you mean by that?

Currently I am not sure how to best write a CHECK-line that will fail if a new successor gets added, e.g. CHECK: Successor(s): if.then.0 will also pass if an additional successor gets added. Perhaps we should just include the number of successors, something like 1 Successor: if.then, or 3 Successors: a, b, c.

Currently I am not sure how to best write a CHECK-line that will fail if a new successor gets added, e.g. CHECK: Successor(s): if.then.0 will also pass if an additional successor gets added. Perhaps we should just include the number of successors, something like 1 Successor: if.then, or 3 Successors: a, b, c.

Would FileCheck's --match-full-lines help?

fhahn updated this revision to Diff 350335.Jun 7 2021, 9:44 AM

Rebase on top of main, so it can be landed without requiring the parent patch

This revision was landed with ongoing or failed builds.Jun 7 2021, 9:59 AM
This revision was automatically updated to reflect the committed changes.