2007-06-11 20:02:15 +02:00
|
|
|
/* This file contains the list of the debug counter for GCC.
|
|
|
|
Copyright (C) 2006, 2007 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
This file is part of GCC.
|
|
|
|
|
|
|
|
GCC is free software; you can redistribute it and/or modify it under
|
|
|
|
the terms of the GNU General Public License as published by the Free
|
2007-07-26 10:37:01 +02:00
|
|
|
Software Foundation; either version 3, or (at your option) any later
|
2007-06-11 20:02:15 +02:00
|
|
|
version.
|
|
|
|
|
|
|
|
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2007-07-26 10:37:01 +02:00
|
|
|
along with GCC; see the file COPYING3. If not see
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
2007-06-11 20:02:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* A debug counter provides you a way to count an event
|
|
|
|
and return false after the counter has exceeded the threshold
|
|
|
|
specified by the option.
|
|
|
|
|
|
|
|
What is it used for ?
|
|
|
|
|
|
|
|
This is primarily used to speed up the search for the bad transformation
|
|
|
|
an optimization pass does. By doing a binary search on N,
|
|
|
|
you can quickly narrow down to one transformation
|
|
|
|
which is bad, or which triggers the bad behavior downstream
|
|
|
|
(usually in the form of the badly generated code).
|
|
|
|
|
|
|
|
How does it work ?
|
|
|
|
|
auto-inc-dec.c, [...]: Fix comment typos.
* auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
config/sh/divcost-analysis, dbgcnt.def, df-core.c,
df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
tree-vect-transform.c: Fix comment typos. Follow spelling
conventions.
From-SVN: r125666
2007-06-13 04:27:04 +02:00
|
|
|
Every time dbg_cnt(named-counter) is called,
|
2007-06-11 20:02:15 +02:00
|
|
|
the counter is incremented for the named-counter.
|
|
|
|
And the incremented value is compared against the threshold (limit)
|
|
|
|
specified by the option.
|
|
|
|
dbg_cnt () returns true if it is at or below threshold, and false if above.
|
|
|
|
|
|
|
|
How to add a new one ?
|
|
|
|
|
|
|
|
To add a new counter, simply add an entry below with some descriptive name,
|
|
|
|
and add call(s) to dbg_cnt(your-counter-name) in appropriate places.
|
|
|
|
Usually, you want to control at the finest granularity
|
|
|
|
any particular transformation can happen.
|
|
|
|
e.g. for each instruction in a dead code elimination,
|
|
|
|
or for each copy instruction in register coalescing,
|
|
|
|
or constant-propagation for each insn,
|
|
|
|
or a block straightening, etc.
|
|
|
|
See dce.c for an example. With the dbg_cnt () call in dce.c,
|
|
|
|
now a developer can use -fdbg-cnt=dce:N
|
|
|
|
to stop doing the dead code elimination after N times.
|
|
|
|
|
|
|
|
How to use it ?
|
|
|
|
|
|
|
|
By default, all limits are UINT_MAX.
|
|
|
|
Since debug count is unsigned int, <= UINT_MAX returns true always.
|
|
|
|
i.e. dbg_cnt() returns true always regardless of the counter value
|
|
|
|
(although it still counts the event).
|
|
|
|
Use -fdbg-cnt=counter1:N,counter2:M,...
|
|
|
|
which sets the limit for counter1 to N, and the limit for counter2 to M, etc.
|
|
|
|
e.g. setting a limit to zero will make dbg_cnt () return false *always*.
|
dbgcnt.def (ra_byte_scan): Added.
2008-04-24 Richard Sandiford <rsandifo@nildram.co.uk>
Kenneth Zadeck <zadeck@naturalbridge.com>
* dbgcnt.def (ra_byte_scan): Added.
* dbgcnt.c (dbg_cnt): Added code to print message to dump_file
when the last hit happens for a counter.
* timevar.def (TV_DF_BYTE_LR): New variable.
* tree-pass.h (pass_fast_rtl_byte_dce): New pass.
* passes.c (pass_fast_rtl_byte_dce): New pass.
* fwprop.c (update_df): Added mode to call df_ref_create.
Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
DF_REF_EXTRACT_OFFSET.
* df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
DF_BYTE_LR_OUT, df_byte_lr): New macro.
(df_mm): New enum.
(df_ref_extract): Added mode field.
(DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
DF_REF_EXTRACT_OFFSET.
(DF_REF_EXTRACT_MODE): New macro.
(df_byte_lr_bb_info): New structure.
(df_print_byte_regset, df_compute_accessed_bytes,
df_byte_lr_add_problem, df_byte_lr_get_regno_start,
df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
df_byte_lr_simulate_uses,
df_byte_lr_simulate_artificial_refs_at_top,
df_byte_lr_simulate_artificial_refs_at_end,
df_compute_accessed_bytes): New function.
(df_ref_create): Add parameter.
(df_byte_lr_get_bb_info): New inline function.
* df-scan.c (df_ref_record, df_uses_record,
df_ref_create_structure): Added mode parameter.
(df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
df_defs_record, df_uses_record, df_get_conditional_uses,
df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
df_entry_block_defs_collect, df_exit_block_uses_collect):
Added mode parameter to calls to df_ref_record, df_uses_record,
df_ref_create_structure.
(df_ref_equal_p, df_ref_compare): Added test for modes.
(df_ref_create_structure): Added code to set mode. Renamed
DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
DF_REF_EXTRACT_OFFSET.
* df-core.c (df_print_byte_regset): New function.
* df-byte-scan.c: New file.
* df-problems.c (df_rd_transfer_function): Removed unnecessary
calls to BITMAP_FREE.
(df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
(df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
df_byte_lr_local_compute, df_byte_lr_init,
df_byte_lr_confluence_0, df_byte_lr_confluence_n,
df_byte_lr_transfer_function, df_byte_lr_free,
df_byte_lr_top_dump, df_byte_lr_bottom_dump,
df_byte_lr_add_problem, df_byte_lr_simulate_defs,
df_byte_lr_simulate_uses,
df_byte_lr_simulate_artificial_refs_at_top,
df_byte_lr_simulate_artificial_refs_at_end): New function.
* dce.c (byte_dce_process_block): New function.
(dce_process_block): au is now passed in rather than computed
locally. Changed loops that look at artificial defs to not look
for conditional or partial ones, because there never are any.
(fast_dce): Now is able to drive byte_dce_process_block or
dce_process_block depending on the kind of dce being done.
(rest_of_handle_fast_dce): Add parameter to fast_dce.
(rest_of_handle_fast_byte_dce): New function.
(rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
* Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
Co-Authored-By: Kenneth Zadeck <zadeck@naturalbridge.com>
From-SVN: r134523
2008-04-21 20:55:13 +02:00
|
|
|
|
|
|
|
The following shell file can then be used to binary search for
|
|
|
|
exact transformation that causes the bug. A second shell script
|
|
|
|
should be written, say "tryTest", which exits with 1 if the
|
|
|
|
compiled program fails and exits with 0 if the program succeeds.
|
|
|
|
This shell script should take 1 parameter, the value to be passed
|
|
|
|
to set the counter of the compilation command in tryTest. Then,
|
|
|
|
assuming that the following script is called binarySearch,
|
|
|
|
the command:
|
|
|
|
|
|
|
|
binarySearch tryTest
|
|
|
|
|
|
|
|
will automatically find the highest value of the counter for which
|
|
|
|
the program fails. If tryTest never fails, binarySearch will
|
|
|
|
produce unpredictable results as it will try to find an upper bound
|
|
|
|
that does not exist.
|
|
|
|
|
|
|
|
When dbgcnt does hits the limit, it writes a comment in the current
|
|
|
|
dump_file of the form:
|
|
|
|
|
|
|
|
***dbgcnt: limit reached for %s.***
|
|
|
|
|
|
|
|
Assuming that the dump file is logging the analysis/transformations
|
|
|
|
it is making, this pinpoints the exact position in the log file
|
|
|
|
where the problem transformation is being logged.
|
|
|
|
|
|
|
|
=====================================
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
while getopts "l:u:i:" opt
|
|
|
|
do
|
|
|
|
case $opt in
|
|
|
|
l) lb="$OPTARG";;
|
|
|
|
u) ub="$OPTARG";;
|
|
|
|
i) init="$OPTARG";;
|
|
|
|
?) usage; exit 3;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
shift $(($OPTIND - 1))
|
|
|
|
echo $@
|
|
|
|
cmd=${1+"${@}"}
|
|
|
|
|
|
|
|
lb=${lb:=0}
|
|
|
|
init=${init:=100}
|
|
|
|
|
|
|
|
$cmd $lb
|
|
|
|
lb_val=$?
|
|
|
|
if [ -z "$ub" ]; then
|
|
|
|
# find the upper bound
|
|
|
|
ub=$(($init + $lb))
|
|
|
|
true
|
|
|
|
while [ $? -eq $lb_val ]; do
|
|
|
|
ub=$(($ub * 10))
|
|
|
|
#ub=`expr $ub \* 10`
|
|
|
|
$cmd $ub
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo command: $cmd
|
|
|
|
|
|
|
|
true
|
|
|
|
while [ `expr $ub - $lb` -gt 1 ]; do
|
|
|
|
try=$(($lb + ( $ub - $lb ) / 2))
|
|
|
|
$cmd $try
|
|
|
|
if [ $? -eq $lb_val ]; then
|
|
|
|
lb=$try
|
|
|
|
else
|
|
|
|
ub=$try
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
echo lbound: $lb
|
|
|
|
echo ubound: $ub
|
|
|
|
|
|
|
|
=====================================
|
|
|
|
|
2007-06-11 20:02:15 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Debug counter definitions. */
|
|
|
|
DEBUG_COUNTER (auto_inc_dec)
|
dbgcnt.def (cfg_cleanup, [...]): New counters.
* dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
dse2, gcse, if_conversion, if_after_combine, if_after_reload,
jump_bypass): New counters.
* cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
* dce.c (gate_ud_dce): Same.
(gate_fast_dce): Same.
* dse.c (gate_dse1): New function.
(gate_dse2): New function.
(gate_dse): Merge results of new gate functions.
* gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
(gate_handle_jump_bypass): Add dbg_cnt.
(gate_handle_gcse): Add dbg_cnt.
* ifcvt.c (gate_handle_if_conversion): Same.
(gate_handle_if_after_combine): Same.
(gate_handle_if_after_reload): Same.
* Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
From-SVN: r132684
2008-02-26 20:21:21 +01:00
|
|
|
DEBUG_COUNTER (cfg_cleanup)
|
2007-06-11 20:02:15 +02:00
|
|
|
DEBUG_COUNTER (cse2_move2add)
|
dbgcnt.def (cfg_cleanup, [...]): New counters.
* dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
dse2, gcse, if_conversion, if_after_combine, if_after_reload,
jump_bypass): New counters.
* cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
* dce.c (gate_ud_dce): Same.
(gate_fast_dce): Same.
* dse.c (gate_dse1): New function.
(gate_dse2): New function.
(gate_dse): Merge results of new gate functions.
* gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
(gate_handle_jump_bypass): Add dbg_cnt.
(gate_handle_gcse): Add dbg_cnt.
* ifcvt.c (gate_handle_if_conversion): Same.
(gate_handle_if_after_combine): Same.
(gate_handle_if_after_reload): Same.
* Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
From-SVN: r132684
2008-02-26 20:21:21 +01:00
|
|
|
DEBUG_COUNTER (cprop1)
|
|
|
|
DEBUG_COUNTER (cprop2)
|
2007-06-11 20:02:15 +02:00
|
|
|
DEBUG_COUNTER (dce)
|
dbgcnt.def (cfg_cleanup, [...]): New counters.
* dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
dse2, gcse, if_conversion, if_after_combine, if_after_reload,
jump_bypass): New counters.
* cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
* dce.c (gate_ud_dce): Same.
(gate_fast_dce): Same.
* dse.c (gate_dse1): New function.
(gate_dse2): New function.
(gate_dse): Merge results of new gate functions.
* gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
(gate_handle_jump_bypass): Add dbg_cnt.
(gate_handle_gcse): Add dbg_cnt.
* ifcvt.c (gate_handle_if_conversion): Same.
(gate_handle_if_after_combine): Same.
(gate_handle_if_after_reload): Same.
* Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
From-SVN: r132684
2008-02-26 20:21:21 +01:00
|
|
|
DEBUG_COUNTER (dce_fast)
|
|
|
|
DEBUG_COUNTER (dce_ud)
|
2007-06-11 20:02:15 +02:00
|
|
|
DEBUG_COUNTER (delete_trivial_dead)
|
dbgcnt.def (ra_byte_scan): Added.
2008-04-24 Richard Sandiford <rsandifo@nildram.co.uk>
Kenneth Zadeck <zadeck@naturalbridge.com>
* dbgcnt.def (ra_byte_scan): Added.
* dbgcnt.c (dbg_cnt): Added code to print message to dump_file
when the last hit happens for a counter.
* timevar.def (TV_DF_BYTE_LR): New variable.
* tree-pass.h (pass_fast_rtl_byte_dce): New pass.
* passes.c (pass_fast_rtl_byte_dce): New pass.
* fwprop.c (update_df): Added mode to call df_ref_create.
Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
DF_REF_EXTRACT_OFFSET.
* df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
DF_BYTE_LR_OUT, df_byte_lr): New macro.
(df_mm): New enum.
(df_ref_extract): Added mode field.
(DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
DF_REF_EXTRACT_OFFSET.
(DF_REF_EXTRACT_MODE): New macro.
(df_byte_lr_bb_info): New structure.
(df_print_byte_regset, df_compute_accessed_bytes,
df_byte_lr_add_problem, df_byte_lr_get_regno_start,
df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
df_byte_lr_simulate_uses,
df_byte_lr_simulate_artificial_refs_at_top,
df_byte_lr_simulate_artificial_refs_at_end,
df_compute_accessed_bytes): New function.
(df_ref_create): Add parameter.
(df_byte_lr_get_bb_info): New inline function.
* df-scan.c (df_ref_record, df_uses_record,
df_ref_create_structure): Added mode parameter.
(df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
df_defs_record, df_uses_record, df_get_conditional_uses,
df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
df_entry_block_defs_collect, df_exit_block_uses_collect):
Added mode parameter to calls to df_ref_record, df_uses_record,
df_ref_create_structure.
(df_ref_equal_p, df_ref_compare): Added test for modes.
(df_ref_create_structure): Added code to set mode. Renamed
DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
DF_REF_EXTRACT_OFFSET.
* df-core.c (df_print_byte_regset): New function.
* df-byte-scan.c: New file.
* df-problems.c (df_rd_transfer_function): Removed unnecessary
calls to BITMAP_FREE.
(df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
(df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
df_byte_lr_local_compute, df_byte_lr_init,
df_byte_lr_confluence_0, df_byte_lr_confluence_n,
df_byte_lr_transfer_function, df_byte_lr_free,
df_byte_lr_top_dump, df_byte_lr_bottom_dump,
df_byte_lr_add_problem, df_byte_lr_simulate_defs,
df_byte_lr_simulate_uses,
df_byte_lr_simulate_artificial_refs_at_top,
df_byte_lr_simulate_artificial_refs_at_end): New function.
* dce.c (byte_dce_process_block): New function.
(dce_process_block): au is now passed in rather than computed
locally. Changed loops that look at artificial defs to not look
for conditional or partial ones, because there never are any.
(fast_dce): Now is able to drive byte_dce_process_block or
dce_process_block depending on the kind of dce being done.
(rest_of_handle_fast_dce): Add parameter to fast_dce.
(rest_of_handle_fast_byte_dce): New function.
(rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
* Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
Co-Authored-By: Kenneth Zadeck <zadeck@naturalbridge.com>
From-SVN: r134523
2008-04-21 20:55:13 +02:00
|
|
|
DEBUG_COUNTER (df_byte_scan)
|
2007-06-11 20:02:15 +02:00
|
|
|
DEBUG_COUNTER (dse)
|
dbgcnt.def (cfg_cleanup, [...]): New counters.
* dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
dse2, gcse, if_conversion, if_after_combine, if_after_reload,
jump_bypass): New counters.
* cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
* dce.c (gate_ud_dce): Same.
(gate_fast_dce): Same.
* dse.c (gate_dse1): New function.
(gate_dse2): New function.
(gate_dse): Merge results of new gate functions.
* gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
(gate_handle_jump_bypass): Add dbg_cnt.
(gate_handle_gcse): Add dbg_cnt.
* ifcvt.c (gate_handle_if_conversion): Same.
(gate_handle_if_after_combine): Same.
(gate_handle_if_after_reload): Same.
* Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
From-SVN: r132684
2008-02-26 20:21:21 +01:00
|
|
|
DEBUG_COUNTER (dse1)
|
|
|
|
DEBUG_COUNTER (dse2)
|
|
|
|
DEBUG_COUNTER (gcse)
|
2007-06-11 20:02:15 +02:00
|
|
|
DEBUG_COUNTER (gcse2_delete)
|
dbgcnt.def (cfg_cleanup, [...]): New counters.
* dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
dse2, gcse, if_conversion, if_after_combine, if_after_reload,
jump_bypass): New counters.
* cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
* dce.c (gate_ud_dce): Same.
(gate_fast_dce): Same.
* dse.c (gate_dse1): New function.
(gate_dse2): New function.
(gate_dse): Merge results of new gate functions.
* gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
(gate_handle_jump_bypass): Add dbg_cnt.
(gate_handle_gcse): Add dbg_cnt.
* ifcvt.c (gate_handle_if_conversion): Same.
(gate_handle_if_after_combine): Same.
(gate_handle_if_after_reload): Same.
* Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
From-SVN: r132684
2008-02-26 20:21:21 +01:00
|
|
|
DEBUG_COUNTER (global_alloc_at_func)
|
|
|
|
DEBUG_COUNTER (global_alloc_at_reg)
|
2007-06-11 20:02:15 +02:00
|
|
|
DEBUG_COUNTER (ia64_sched2)
|
dbgcnt.def (cfg_cleanup, [...]): New counters.
* dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
dse2, gcse, if_conversion, if_after_combine, if_after_reload,
jump_bypass): New counters.
* cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
* dce.c (gate_ud_dce): Same.
(gate_fast_dce): Same.
* dse.c (gate_dse1): New function.
(gate_dse2): New function.
(gate_dse): Merge results of new gate functions.
* gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
(gate_handle_jump_bypass): Add dbg_cnt.
(gate_handle_gcse): Add dbg_cnt.
* ifcvt.c (gate_handle_if_conversion): Same.
(gate_handle_if_after_combine): Same.
(gate_handle_if_after_reload): Same.
* Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
From-SVN: r132684
2008-02-26 20:21:21 +01:00
|
|
|
DEBUG_COUNTER (if_conversion)
|
|
|
|
DEBUG_COUNTER (if_after_combine)
|
|
|
|
DEBUG_COUNTER (if_after_reload)
|
|
|
|
DEBUG_COUNTER (jump_bypass)
|
2007-06-11 20:02:15 +02:00
|
|
|
DEBUG_COUNTER (local_alloc_for_sched)
|
|
|
|
DEBUG_COUNTER (postreload_cse)
|
|
|
|
DEBUG_COUNTER (pre_insn)
|
2008-07-08 18:11:06 +02:00
|
|
|
DEBUG_COUNTER (treepre_insert)
|
2007-06-11 20:02:15 +02:00
|
|
|
DEBUG_COUNTER (sched2_func)
|
|
|
|
DEBUG_COUNTER (sched_block)
|
|
|
|
DEBUG_COUNTER (sched_func)
|
|
|
|
DEBUG_COUNTER (sched_insn)
|
|
|
|
DEBUG_COUNTER (sched_region)
|
dbgcnt.def (cfg_cleanup, [...]): New counters.
* dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
dse2, gcse, if_conversion, if_after_combine, if_after_reload,
jump_bypass): New counters.
* cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
* dce.c (gate_ud_dce): Same.
(gate_fast_dce): Same.
* dse.c (gate_dse1): New function.
(gate_dse2): New function.
(gate_dse): Merge results of new gate functions.
* gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
(gate_handle_jump_bypass): Add dbg_cnt.
(gate_handle_gcse): Add dbg_cnt.
* ifcvt.c (gate_handle_if_conversion): Same.
(gate_handle_if_after_combine): Same.
(gate_handle_if_after_reload): Same.
* Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
From-SVN: r132684
2008-02-26 20:21:21 +01:00
|
|
|
DEBUG_COUNTER (sms_sched_loop)
|
2007-06-11 20:02:15 +02:00
|
|
|
DEBUG_COUNTER (split_for_sched2)
|
|
|
|
DEBUG_COUNTER (tail_call)
|