summaryrefslogtreecommitdiff
path: root/gcc/sched-deps.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/sched-deps.c')
-rw-r--r--gcc/sched-deps.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c
index 67ea68bedf3..9b566a0ec26 100644
--- a/gcc/sched-deps.c
+++ b/gcc/sched-deps.c
@@ -551,12 +551,20 @@ sched_analyze_1 (deps, x, insn)
if (dest == 0)
return;
- if (GET_CODE (dest) == PARALLEL
- && GET_MODE (dest) == BLKmode)
+ if (GET_CODE (dest) == PARALLEL && GET_MODE (dest) == BLKmode)
{
register int i;
+
for (i = XVECLEN (dest, 0) - 1; i >= 0; i--)
- sched_analyze_1 (deps, XVECEXP (dest, 0, i), insn);
+ {
+ rtx reg = XVECEXP (dest, 0, i);
+
+ if (GET_CODE (reg) == EXPR_LIST)
+ reg = XEXP (reg, 0);
+
+ sched_analyze_1 (deps, reg, insn);
+ }
+
if (GET_CODE (x) == SET)
sched_analyze_2 (deps, SET_SRC (x), insn);
return;