aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-04-27 00:18:08 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-04-27 00:18:08 -0700
commit0a2287bf899285f8b60b4af922e2fb8d9b4cce2a (patch)
tree95290d1b3a766f3853be710b660f7a5f14bbd6dc /gcc/rtlanal.c
parentf77046bbf90d5635de3c42233c79b07df680eb4c (diff)
downloadgcc-0a2287bf899285f8b60b4af922e2fb8d9b4cce2a.zip
gcc-0a2287bf899285f8b60b4af922e2fb8d9b4cce2a.tar.gz
gcc-0a2287bf899285f8b60b4af922e2fb8d9b4cce2a.tar.bz2
rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
* 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. From-SVN: r33473
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 d9087cd..f45a3d4 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))