cse.c (is_dead_reg): Change into inline function that is not called through for_each_rtx.
authorJakub Jelinek <jakub@redhat.com>
Thu, 14 Oct 2010 07:17:54 +0000 (09:17 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 14 Oct 2010 07:17:54 +0000 (09:17 +0200)
commit6699b754e1e0464109d8f7dc163ba245ec59c881
tree4c0b4bb96185a3d569106623c3fc4e30cfc0e171
parentd2e60b7bc2c690b1572072dcac73fbdcc8b15677
cse.c (is_dead_reg): Change into inline function that is not called through for_each_rtx.

* cse.c (is_dead_reg): Change into inline function that is not
called through for_each_rtx.
(set_live_p): Adjust caller.
(insn_live_p): Don't reset DEBUG_INSNs here.
(struct dead_debug_insn_data): New data.
(count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
(delete_trivially_dead_insns): If there is just one setter for the
dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
and add DEBUG_INSN for it right before the removed setter and
use the DEBUG_EXPR instead of the dead pseudo.

From-SVN: r165452
gcc/ChangeLog
gcc/cse.c