summaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-27 07:18:08 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-27 07:18:08 +0000
commiteb1c92fbd0a6c026832b2210aec95b2b9dbf0efc (patch)
tree95290d1b3a766f3853be710b660f7a5f14bbd6dc /gcc/rtlanal.c
parent17421e3315013a4df1e9b92a25454bdf0186e52f (diff)
downloadgcc-eb1c92fbd0a6c026832b2210aec95b2b9dbf0efc.tar.gz
* rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
* genconfig.c (main): Set all HAVE_foo to 1. * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33473 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index d9087cd51f9..f45a3d44245 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -1233,22 +1233,9 @@ dead_or_set_regno_p (insn, test_regno)
unsigned int regno, endregno;
rtx link, pattern;
- /* See if there is a death note for something that includes
- TEST_REGNO. */
- for (link = REG_NOTES (insn); link; link = XEXP (link, 1))
- {
- if (REG_NOTE_KIND (link) != REG_DEAD
- || GET_CODE (XEXP (link, 0)) != REG)
- continue;
-
- regno = REGNO (XEXP (link, 0));
- endregno = (regno >= FIRST_PSEUDO_REGISTER ? regno + 1
- : regno + HARD_REGNO_NREGS (regno,
- GET_MODE (XEXP (link, 0))));
-
- if (test_regno >= regno && test_regno < endregno)
- return 1;
- }
+ /* See if there is a death note for something that includes TEST_REGNO. */
+ if (find_regno_note (insn, REG_DEAD, test_regno))
+ return 1;
if (GET_CODE (insn) == CALL_INSN
&& find_regno_fusage (insn, CLOBBER, test_regno))