summaryrefslogtreecommitdiff
path: root/gcc/modulo-sched.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-24 21:59:49 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-24 21:59:49 +0000
commitc38b28e7f0876414e2ac8cbd06272f78169a3c68 (patch)
tree79fcd005a08d6ca51e2a25820e9ad881a4dc0e2c /gcc/modulo-sched.c
parent0b3f0f444150a9e3b64cc963ad1ef6bd44d7a70e (diff)
downloadgcc-c38b28e7f0876414e2ac8cbd06272f78169a3c68.tar.gz
PR bootstrap/59279
Revert previous commit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205338 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/modulo-sched.c')
-rw-r--r--gcc/modulo-sched.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c
index 444ffda34e9..f3130449909 100644
--- a/gcc/modulo-sched.c
+++ b/gcc/modulo-sched.c
@@ -1471,7 +1471,7 @@ sms_schedule (void)
continue;
}
- /* Don't handle BBs with calls
+ /* Don't handle BBs with calls or barriers
or !single_set with the exception of instructions that include
count_reg---these instructions are part of the control part
that do-loop recognizes.
@@ -1481,6 +1481,7 @@ sms_schedule (void)
rtx set;
if (CALL_P (insn)
+ || BARRIER_P (insn)
|| (NONDEBUG_INSN_P (insn) && !JUMP_P (insn)
&& !single_set (insn) && GET_CODE (PATTERN (insn)) != USE
&& !reg_mentioned_p (count_reg, insn))
@@ -1495,6 +1496,8 @@ sms_schedule (void)
{
if (CALL_P (insn))
fprintf (dump_file, "SMS loop-with-call\n");
+ else if (BARRIER_P (insn))
+ fprintf (dump_file, "SMS loop-with-barrier\n");
else if ((NONDEBUG_INSN_P (insn) && !JUMP_P (insn)
&& !single_set (insn) && GET_CODE (PATTERN (insn)) != USE))
fprintf (dump_file, "SMS loop-with-not-single-set\n");