Commit c3b80729 by Jeff Law

reorg.c (dbr_schedule): Do not run the delay slot scheduling pass if...

	* reorg.c (dbr_schedule): Do not run the delay slot
	scheduling pass if the current function has no insns
	other than the prologue and epilogue.

From-SVN: r4252
parent 440954b5
...@@ -3893,6 +3893,11 @@ dbr_schedule (first, file) ...@@ -3893,6 +3893,11 @@ dbr_schedule (first, file)
flag_no_peephole = old_flag_no_peephole; flag_no_peephole = old_flag_no_peephole;
#endif #endif
/* If the current function has no insns other than the prologue and
epilogue, then do not try to fill any delay slots. */
if (n_basic_blocks == 0)
return;
/* Find the highest INSN_UID and allocate and initialize our map from /* Find the highest INSN_UID and allocate and initialize our map from
INSN_UID's to position in code. */ INSN_UID's to position in code. */
for (max_uid = 0, insn = first; insn; insn = NEXT_INSN (insn)) for (max_uid = 0, insn = first; insn; insn = NEXT_INSN (insn))
......
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