* [google] cprop pass's gate function cleanup (issue4572055)
@ 2011-06-09 21:11 David Li
0 siblings, 0 replies; only message in thread
From: David Li @ 2011-06-09 21:11 UTC (permalink / raw)
To: reply, gcc-patches
The patch fixed the breakage due to the r174848 backport to google/main --
the gate function for cprop is in a different file from trunk.
2011-06-09 David Li <davidxl@google.com>
* gcse.c (gate_rtl_cprop): Gate cleanup
(execute_rtl_cprop): Gate cleanup
Index: gcse.c
===================================================================
--- gcse.c (revision 174852)
+++ gcse.c (working copy)
@@ -5309,15 +5309,17 @@ one_cprop_pass (void)
static bool
gate_rtl_cprop (void)
{
- return optimize > 0 && flag_gcse
- && !cfun->calls_setjmp
- && dbg_cnt (cprop);
+ return optimize > 0 && flag_gcse;
}
static unsigned int
execute_rtl_cprop (void)
{
int changed;
+ if (cfun->calls_setjmp
+ || !dbg_cnt (cprop))
+ return 0;
+
delete_unreachable_blocks ();
df_set_flags (DF_LR_RUN_DCE);
df_analyze ();
--
This patch is available for review at http://codereview.appspot.com/4572055
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-09 20:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-09 21:11 [google] cprop pass's gate function cleanup (issue4572055) David Li
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).