This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR44020


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]