HomePhabricator

Print out DebugCounter info with -print-debug-counter

Description

Print out DebugCounter info with -print-debug-counter

Summary:
This patch will print out {Counter, Skip, StopAfter} info of all passes which have DebugCounter set at destruction.

It can be used to monitor how many times does certain transformation happen in a pass, and also help check if -debug-counter option is set correctly.

Please refer to this thread for motivation.

Reviewers: george.burgess.iv, davide, greened

Reviewed By: greened

Subscribers: kristina, llozano, mgorny, llvm-commits, mgrang

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

Details

Committed
zhizhouyOct 23 2018, 2:51 PM
Reviewer
greened
Differential Revision
D50031: Add pass to print out DebugCounter info
Parents
rL345084: [dwarfdump] Make incompatibility between -diff and -verbose explicit.
Branches
Unknown
Tags
Unknown