[PATCH] D73078: [VPlan] Use consecutive numbers to print VPValues instead of addresses.
Gil Rapaport via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 1 08:59:39 PST 2020
gilr added a comment.
In D73078#1870844 <https://reviews.llvm.org/D73078#1870844>, @fhahn wrote:
> [snip]
> I've put up a patch to add a pointer to VPlan: D74445 <https://reviews.llvm.org/D74445>. I;ve also added implementations of print() with and without SlotTracker (so we can re-use the existing tracker, e.g. from VPlanPrinter. I still need to update the slot tracker to actually use it. VPInstructions without a block (or a VPBasicBlock without parentPlan) should probably be handled similar to IR instructions without BB, by using something like 'badref'.
>
> What do you think?
This added pointer to VPlan can indeed take care of enumerating VPInstructions, defaulting to 'badref'.
Essentially all other VPValues except BackedgeTakenCount are wrappers of underlying IR values (right?), so they can print that value e.g. with the proposed `%ir.` w/o needing SlotTracker's services, thereby simplifying the patch. This would leave the somewhat special BackedgeTakenCount as the only user of the "where:" clause and current pointer-based naming.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73078/new/
https://reviews.llvm.org/D73078
More information about the llvm-commits
mailing list