gcse.c (cprop_jump): Make use of REG_EQUAL notes on both setcc and jump, if they...
authorRoger Sayle <roger@eyesopen.com>
Wed, 21 May 2003 01:16:33 +0000 (01:16 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Wed, 21 May 2003 01:16:33 +0000 (01:16 +0000)
commitbc6688b40ef6cc12e88a2498f82dbb2cd52ee443
treef28f48b34144fa1f8eece6d07edcd6abcef71a4f
parentfc351800ecc6c2583d0e7be9d18eed6b0934563e
gcse.c (cprop_jump): Make use of REG_EQUAL notes on both setcc and jump, if they exist.

* 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.

Co-Authored-By: Joern Rennecke <joern.rennecke@superh.com>
Co-Authored-By: Kazu Hirata <kazu@cs.umass.edu>
From-SVN: r67054
gcc/ChangeLog
gcc/gcse.c
gcc/jump.c