public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [SH] Enable shrink-wrap with reorder_blocks_and_parition
@ 2012-11-09 10:30 Christian Bruel
  2012-11-09 13:47 ` Kaz Kojima
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Bruel @ 2012-11-09 10:30 UTC (permalink / raw)
  To: Kaz Kojima, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

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




[-- Attachment #2: shrink-wrap2.patch --]
[-- Type: text/x-patch, Size: 623 bytes --]

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);
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [SH] Enable shrink-wrap with reorder_blocks_and_parition
  2012-11-09 10:30 [SH] Enable shrink-wrap with reorder_blocks_and_parition Christian Bruel
@ 2012-11-09 13:47 ` Kaz Kojima
  0 siblings, 0 replies; 2+ messages in thread
From: Kaz Kojima @ 2012-11-09 13:47 UTC (permalink / raw)
  To: christian.bruel; +Cc: gcc-patches

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-09 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-09 10:30 [SH] Enable shrink-wrap with reorder_blocks_and_parition Christian Bruel
2012-11-09 13:47 ` Kaz Kojima

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).