timevar.def (TV_CPROP1, [...]): New timers.
authorSteven Bosscher <steven@gcc.gnu.org>
Mon, 9 Aug 2004 16:58:42 +0000 (16:58 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Mon, 9 Aug 2004 16:58:42 +0000 (16:58 +0000)
commit27fb79ad58913a5a6e7f65013c027bb13ad9b36b
tree6acad3c2863017816a499859e6818fdc7225e212
parent883c9d4d1237863941b95b3e7b8dba71fb49a78e
timevar.def (TV_CPROP1, [...]): New timers.

* timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
New timers.
* gcse.c: Include timevar.h.
(const_prop_count, copy_prop_count): Rename to global_const_prop_count
and global_copy_prop_count.
(local_const_prop_count, local_copy_prop_count): New static globals.
(gcse_main): Set the right timevar for each pass.
(cprop_jump): Increment global_const_prop_count when a constant is
propagated.  Add "GLOBAL" to dump output.
(cprop_insn): Increment global_const_prop_count when a constant is
propagated, or global_copy_prop_count when a copy is propagated.
(do_local_cprop): Likewise for local_const_prop_count and
local_copy_prop_count.
(one_cprop_pass): Initialize const/cprop counters to zero.
Print out results of local and global const/cprop separately.
(bypass_block): Break over-length line.

From-SVN: r85718
gcc/ChangeLog
gcc/Makefile.in
gcc/gcse.c
gcc/timevar.def