From f52a73a48ee7123e3db494c6b0ac72d0d4359ad9 Mon Sep 17 00:00:00 2001 From: Simon Dardis Date: Mon, 26 Oct 2015 16:29:31 +0000 Subject: target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook. gcc/ * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook. * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document. * doc/tm.texi: Regenerated. * reorg.c (dbr_schedule): Use new hook. * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New. testsuite/ * gcc.target/mips/ds-schedule-1.c: New. * gcc.target/mips/ds-schedule-2.c: New. From-SVN: r229383 --- gcc/reorg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/reorg.c') diff --git a/gcc/reorg.c b/gcc/reorg.c index 47b938b..ccd0d71 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -3726,7 +3726,8 @@ dbr_schedule (rtx_insn *first) { fill_simple_delay_slots (1); fill_simple_delay_slots (0); - fill_eager_delay_slots (); + if (!targetm.no_speculation_in_delay_slots_p ()) + fill_eager_delay_slots (); relax_delay_slots (first); } -- cgit v1.1