diff mbox

[SH] Enable shrink-wrap with reorder_blocks_and_parition

Message ID 509CDB43.9000708@st.com
State New
Headers show

Commit Message

Christian Bruel Nov. 9, 2012, 10:30 a.m. UTC
Hi Kaz,

Now that the cross-jumping problem is fixed since rev #193350, I'd like
to remove this restriction and close PR/54546.

Checked with default sh-sim target_board and
--target_board=sh-sim/-freorder-blocks-and-partition.

Thanks

Christian

Comments

Kaz Kojima Nov. 9, 2012, 1:47 p.m. UTC | #1
Christian Bruel <christian.bruel@st.com> wrote:
> Now that the cross-jumping problem is fixed since rev #193350, I'd like
> to remove this restriction and close PR/54546.
> 
> Checked with default sh-sim target_board and
> --target_board=sh-sim/-freorder-blocks-and-partition.

OK.

Regards,
	kaz
diff mbox

Patch

2012-11-09  Christian Bruel  <christian.bruel@st.com>

	* config/sh/sh.c (sh_can_use_simple_return_p): Allow with reorder-blocks-and-partition.

Index: config/sh/sh.c
===================================================================
--- config/sh/sh.c	(revision 193350)
+++ config/sh/sh.c	(working copy)
@@ -13330,10 +13330,6 @@  sh_can_use_simple_return_p (void)
   if (optimize_function_for_size_p (cfun))
     return false;
 
-  /* Can't optimize CROSSING_JUMPS for now.  */
-  if (flag_reorder_blocks_and_partition)
-    return false;
-
   /* Finally, allow for pr save.  */
   d = calc_live_regs (&live_regs_mask);