HomePhabricator

[VPlan] Add plain text (not DOT's digraph) dumps

Authored by a.elovikov on Mar 18 2021, 11:32 AM.

Description

[VPlan] Add plain text (not DOT's digraph) dumps

I foresee two uses for this:

  1. It's easier to use those in debugger.
  2. Once we start implementing more VPlan-to-VPlan transformations (especially inner loop massaging stuff), using the vectorized LLVM IR as CHECK targets in LIT test would become too obscure. I can imagine that we'd want to CHECK against VPlan dumps after multiple transformations instead. That would be easier with plain text dumps than with DOT format.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D96628

Event Timeline

fhahn added a subscriber: fhahn.Mar 23 2021, 3:39 AM
fhahn added inline comments.
/llvm/lib/Transforms/Vectorize/VPlan.cpp
738

I originally missed that we are not including the set name for the plan with the new style printing. I pushed f759d512c839 to also print the name here, which should help to distinguish between different plans.