Introduce DebugCounter into ConstProp pass
authorZhizhou Yang <zhizhouyang@gmail.com>
Tue, 13 Nov 2018 00:31:22 +0000 (00:31 +0000)
committerZhizhou Yang <zhizhouyang@gmail.com>
Tue, 13 Nov 2018 00:31:22 +0000 (00:31 +0000)
commitcc633af55b74eac4e5a6c49cc6a7af7b7a3fe283
tree6f7670dc10af7e616442e690ab88f3419bf6316e
parent02f289e58753b2537fa360873dff538fbffd25ff
Introduce DebugCounter into ConstProp pass

Summary:
This patch introduces DebugCounter into ConstProp pass at per-transformation level.

It will provide an option to skip first n or stop after n transformations for the whole ConstProp pass.

This will make debug easier for the pass, also providing chance to do transformation level bisecting.

Reviewers: davide, fhahn

Reviewed By: fhahn

Subscribers: llozano, george.burgess.iv, llvm-commits

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

llvm-svn: 346720
llvm/lib/Transforms/Scalar/ConstantProp.cpp