Commit 355fca3e by Alasdair Baird Committed by Richard Henderson

flow.c (insn_dead_p): Use XEXP rather than SUBREG_REG.

         * flow.c (insn_dead_p): Use XEXP rather than SUBREG_REG.
         * haifa-sched.c (sched_analyze_1): Use XEXP rather than SUBREG_REG
         and SET_DEST. Update comment.

From-SVN: r29196
parent 7eb3fb5f
Wed Sep 8 00:33:43 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
* flow.c (insn_dead_p): Use XEXP rather than SUBREG_REG.
* haifa-sched.c (sched_analyze_1): Use XEXP rather than SUBREG_REG
and SET_DEST. Update comment.
Wed Sep 8 18:55:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz> Wed Sep 8 18:55:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* config/c4x/c4x.c: Include ggc.h. * config/c4x/c4x.c: Include ggc.h.
......
...@@ -2967,7 +2967,7 @@ insn_dead_p (x, needed, call_ok, notes) ...@@ -2967,7 +2967,7 @@ insn_dead_p (x, needed, call_ok, notes)
while (GET_CODE (r) == SUBREG || GET_CODE (r) == STRICT_LOW_PART while (GET_CODE (r) == SUBREG || GET_CODE (r) == STRICT_LOW_PART
|| GET_CODE (r) == ZERO_EXTRACT) || GET_CODE (r) == ZERO_EXTRACT)
r = SUBREG_REG (r); r = XEXP (r, 0);
if (GET_CODE (r) == REG) if (GET_CODE (r) == REG)
{ {
......
...@@ -3233,8 +3233,9 @@ flush_pending_lists (insn, only_write) ...@@ -3233,8 +3233,9 @@ flush_pending_lists (insn, only_write)
last_pending_memory_flush = alloc_INSN_LIST (insn, NULL_RTX); last_pending_memory_flush = alloc_INSN_LIST (insn, NULL_RTX);
} }
/* Analyze a single SET or CLOBBER rtx, X, creating all dependencies generated /* Analyze a single SET, CLOBBER, PRE_DEC, POST_DEC, PRE_INC or POST_INC
by the write to the destination of X, and reads of everything mentioned. */ rtx, X, creating all dependencies generated by the write to the
destination of X, and reads of everything mentioned. */
static void static void
sched_analyze_1 (x, insn) sched_analyze_1 (x, insn)
...@@ -3242,7 +3243,7 @@ sched_analyze_1 (x, insn) ...@@ -3242,7 +3243,7 @@ sched_analyze_1 (x, insn)
rtx insn; rtx insn;
{ {
register int regno; register int regno;
register rtx dest = SET_DEST (x); register rtx dest = XEXP (x, 0);
enum rtx_code code = GET_CODE (x); enum rtx_code code = GET_CODE (x);
if (dest == 0) if (dest == 0)
...@@ -3268,7 +3269,7 @@ sched_analyze_1 (x, insn) ...@@ -3268,7 +3269,7 @@ sched_analyze_1 (x, insn)
sched_analyze_2 (XEXP (dest, 1), insn); sched_analyze_2 (XEXP (dest, 1), insn);
sched_analyze_2 (XEXP (dest, 2), insn); sched_analyze_2 (XEXP (dest, 2), insn);
} }
dest = SUBREG_REG (dest); dest = XEXP (dest, 0);
} }
if (GET_CODE (dest) == REG) if (GET_CODE (dest) == REG)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment