aboutsummaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorAlasdair Baird <alasdair@wildcat.demon.co.uk>1999-09-08 07:34:47 +0000
committerRichard Henderson <rth@gcc.gnu.org>1999-09-08 00:34:47 -0700
commit355fca3e4f79409c57e659a3b42c88b5edba58a5 (patch)
tree023d01c51f0193d5cfe81ced43cdaf3d11c3a836 /gcc/haifa-sched.c
parent7eb3fb5f9254d58fc95adc94fd1c8901e542e4e9 (diff)
downloadgcc-355fca3e4f79409c57e659a3b42c88b5edba58a5.zip
gcc-355fca3e4f79409c57e659a3b42c88b5edba58a5.tar.gz
gcc-355fca3e4f79409c57e659a3b42c88b5edba58a5.tar.bz2
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
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 5aa69b6..e504192 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -3233,8 +3233,9 @@ flush_pending_lists (insn, only_write)
last_pending_memory_flush = alloc_INSN_LIST (insn, NULL_RTX);
}
-/* Analyze a single SET or CLOBBER rtx, X, creating all dependencies generated
- by the write to the destination of X, and reads of everything mentioned. */
+/* Analyze a single SET, CLOBBER, PRE_DEC, POST_DEC, PRE_INC or POST_INC
+ rtx, X, creating all dependencies generated by the write to the
+ destination of X, and reads of everything mentioned. */
static void
sched_analyze_1 (x, insn)
@@ -3242,7 +3243,7 @@ sched_analyze_1 (x, insn)
rtx insn;
{
register int regno;
- register rtx dest = SET_DEST (x);
+ register rtx dest = XEXP (x, 0);
enum rtx_code code = GET_CODE (x);
if (dest == 0)
@@ -3268,7 +3269,7 @@ sched_analyze_1 (x, insn)
sched_analyze_2 (XEXP (dest, 1), insn);
sched_analyze_2 (XEXP (dest, 2), insn);
}
- dest = SUBREG_REG (dest);
+ dest = XEXP (dest, 0);
}
if (GET_CODE (dest) == REG)