This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][alias-improvements] Delay updating the stmt from gimple_copy
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 26 Jan 2009 17:56:53 +0100 (CET)
- Subject: [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;