IR printing improvement for loop passes
authorFedor Sergeev <fedor.sergeev@oracle.com>
Wed, 22 Nov 2017 20:59:53 +0000 (20:59 +0000)
committerFedor Sergeev <fedor.sergeev@oracle.com>
Wed, 22 Nov 2017 20:59:53 +0000 (20:59 +0000)
commit61975b49fe9c999f5f6632817667217306116af4
tree74523cc9688ca441a91874fe04746ffec2409e3a
parent942fa1631f7f3aea7de4e4aec22219f9b7faeeff
IR printing improvement for loop passes

Summary:
Loop-pass printing is somewhat deficient since it does not provide the
context around the loop (e.g. preheader). This context information becomes
pretty essential when analyzing transformations that move stuff out of the loop.

Extending printLoop to cover preheader and exit blocks (if any).

Reviewers: sanjoy, silvas, weimingz

Reviewed By: sanjoy

Subscribers: apilipenko, skatkov, llvm-commits

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

llvm-svn: 318878
llvm/lib/Analysis/LoopInfo.cpp
llvm/test/Other/loop-pass-printer.ll [new file with mode: 0644]