public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix PR44020
@ 2010-05-07 11:54 Richard Guenther
  0 siblings, 0 replies; only message in thread
From: Richard Guenther @ 2010-05-07 11:54 UTC (permalink / raw)
  To: gcc-patches


Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.

Richard.

2010-05-07  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/44020
	* tree-ssa-pre.c (execute_pre): Do not remove dead inserted
	code when PRE is not yet initialized.

Index: gcc/tree-ssa-pre.c
===================================================================
*** gcc/tree-ssa-pre.c	(revision 159149)
--- gcc/tree-ssa-pre.c	(working copy)
*************** execute_pre (bool do_fre)
*** 4710,4726 ****
    if (!run_scc_vn (do_fre))
      {
        if (!do_fre)
! 	{
! 	  remove_dead_inserted_code ();
! 	  loop_optimizer_finalize ();
! 	}
  
        return 0;
      }
    init_pre (do_fre);
    scev_initialize ();
  
- 
    /* Collect and value number expressions computed in each basic block.  */
    compute_avail ();
  
--- 4710,4723 ----
    if (!run_scc_vn (do_fre))
      {
        if (!do_fre)
! 	loop_optimizer_finalize ();
  
        return 0;
      }
+ 
    init_pre (do_fre);
    scev_initialize ();
  
    /* Collect and value number expressions computed in each basic block.  */
    compute_avail ();
  

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-07 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-07 11:54 [PATCH] Fix PR44020 Richard Guenther

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