OSDN Git Service

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)
commit4ab75faa097f566be03ca6609fa74d7c727a667c
tree33637d8ee3376a523a6d40271d1357d639770d2e
parent613246a2a35b85e55f8f2d2f15f3694dbd42e02b
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346720 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ConstantProp.cpp