ipa-cp: New debug counters for IPA-CP
authorMartin Jambor <mjambor@suse.cz>
Mon, 2 Nov 2020 14:43:28 +0000 (15:43 +0100)
committerMartin Jambor <mjambor@suse.cz>
Mon, 2 Nov 2020 14:43:28 +0000 (15:43 +0100)
commit86deadf8d3ac55b3cd07e15d4e83e3b6ccd9ee81
treea8d8e820d75f7e9da4504721780a726fdf5d7441
parent637aeb6b8da36a621cf076068498adc5322be069
ipa-cp: New debug counters for IPA-CP

Martin Liška has been asking me to add debug counters to the IPA-CP pass so
that testcase reductions are easier.  The pass already has one for the bit
value propagation, so this patch adds one for value_range propagation
and one for the actual constant propagation.

gcc/ChangeLog:

2020-10-30  Martin Jambor  <mjambor@suse.cz>

* dbgcnt.def (ipa_cp_values): New counter.
(ipa_cp_vr): Likewise.
* ipa-cp.c (decide_about_value): Check and bump ipa_cp_values debug
counter.
(decide_whether_version_node): Likewise.
(ipcp_store_vr_results):Check and bump ipa_cp_vr debug counter.
gcc/dbgcnt.def
gcc/ipa-cp.c