* gcse.c (cprop_jump): Make use of REG_EQUAL notes on both
commit1e0703ac03f78786bec1d78ab305f8880b658ad6
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 May 2003 01:16:33 +0000 (21 01:16 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 May 2003 01:16:33 +0000 (21 01:16 +0000)
treef28f48b34144fa1f8eece6d07edcd6abcef71a4f
parent8c7c29d9756dce88e59647f355e780ce0b6f8be4
* gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
setcc and jump, if they exist.  If substituted instruction
fails to validate, store current effort in a REG_EQUAL note.
(cprop_insn): Don't attempt further substitutions if the
current instruction has been deleted.
(local_cprop_pass): Likewise.

* jump.c (redirect_jump):  Also update REG_EQUAL note, if
one is attached to the jump instruction.
(invert_jump): Delete REG_EQUAL note on jump, if one exists.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67054 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gcse.c
gcc/jump.c