Commit eaf23fc3 by Eric Botcazou Committed by Eric Botcazou

re PR rtl-optimization/54369 (delayed-branch pass removes too many instructions)

	PR rtl-optimization/54369
	* config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
	calling dbr_schedule.
	* config/sparc/sparc.c (sparc_reorg): Likewise.

From-SVN: r190858
parent 51ad44fd
2012-09-02 Eric Botcazou <ebotcazou@adacore.com>
PR rtl-optimization/54369
* config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
calling dbr_schedule.
* config/sparc/sparc.c (sparc_reorg): Likewise.
2012-09-01 Jakub Jelinek <jakub@redhat.com> 2012-09-01 Jakub Jelinek <jakub@redhat.com>
PR target/54436 PR target/54436
......
...@@ -15729,7 +15729,10 @@ mips_reorg (void) ...@@ -15729,7 +15729,10 @@ mips_reorg (void)
} }
if (optimize > 0 && flag_delayed_branch) if (optimize > 0 && flag_delayed_branch)
dbr_schedule (get_insns ()); {
cleanup_barriers ();
dbr_schedule (get_insns ());
}
mips_reorg_process_insns (); mips_reorg_process_insns ();
if (!TARGET_MIPS16 if (!TARGET_MIPS16
&& TARGET_EXPLICIT_RELOCS && TARGET_EXPLICIT_RELOCS
......
...@@ -10691,7 +10691,10 @@ sparc_reorg (void) ...@@ -10691,7 +10691,10 @@ sparc_reorg (void)
/* We need to have the (essentially) final form of the insn stream in order /* We need to have the (essentially) final form of the insn stream in order
to properly detect the various hazards. Run delay slot scheduling. */ to properly detect the various hazards. Run delay slot scheduling. */
if (optimize > 0 && flag_delayed_branch) if (optimize > 0 && flag_delayed_branch)
dbr_schedule (get_insns ()); {
cleanup_barriers ();
dbr_schedule (get_insns ());
}
/* Now look for specific patterns in the insn stream. */ /* Now look for specific patterns in the insn stream. */
for (insn = get_insns (); insn; insn = next) for (insn = get_insns (); insn; insn = next)
......
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