[VPlan] Add plain text (not DOT's digraph) dumps
authorAndrei Elovikov <andrei.elovikov@intel.com>
Thu, 18 Mar 2021 18:32:34 +0000 (11:32 -0700)
committerAndrei Elovikov <andrei.elovikov@intel.com>
Thu, 18 Mar 2021 18:33:39 +0000 (11:33 -0700)
commit6b053c9867a3ede32e51cef3ed972d5ce5b38bc0
tree5d9075370fd835f7803a46aec4a82a16f4920d71
parentf5764a8654e3caa6ca5dab3a89238c165062228f
[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
llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/test/Transforms/LoopVectorize/icmp-uniforms.ll
llvm/test/Transforms/LoopVectorize/vplan-dot-printing.ll [new file with mode: 0644]
llvm/test/Transforms/LoopVectorize/vplan-printing.ll
llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp
llvm/unittests/Transforms/Vectorize/VPlanTest.cpp