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][alias-improvements] Delay updating the stmt from gimple_copy


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

Richard.

2009-01-26  Richard Guenther  <rguenther@suse.de>

	* gimple.c (gimple_copy): Delay updating the statement.

Index: alias-improvements/gcc/gimple.c
===================================================================
*** alias-improvements.orig/gcc/gimple.c	2009-01-19 15:08:51.000000000 +0100
--- alias-improvements/gcc/gimple.c	2009-01-26 15:53:37.000000000 +0100
*************** gimple_copy (gimple stmt)
*** 2214,2220 ****
  	  copy->gsmem.membase.loads = NULL;
  	}
  
!       update_stmt (copy);
      }
  
    return copy;
--- 2214,2221 ----
  	  copy->gsmem.membase.loads = NULL;
  	}
  
!       /* SSA operands need to be updated.  */
!       gimple_set_modified (copy, true);
      }
  
    return copy;


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