This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] fix stmt value in substitute_and_fold
- From: Brian Booth <bbooth at redhat dot com>
- To: GCC-Patches <gcc-patches at gcc dot gnu dot org>
- Date: 17 Feb 2004 11:30:18 -0500
- Subject: [tree-ssa] fix stmt value in substitute_and_fold
- Organization:
Committed as obvious.
Brian
---
2004-02-17 Brian Booth <bbooth@redhat.com>
* tree-ssa-ccp.c (substitute_and_fold): Update stmt after
calling fold_stmt.
Index: tree-ssa-ccp.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-ccp.c,v
retrieving revision 1.1.2.139
diff -c -p -r1.1.2.139 tree-ssa-ccp.c
*** tree-ssa-ccp.c 13 Feb 2004 11:15:57 -0000 1.1.2.139
--- tree-ssa-ccp.c 17 Feb 2004 16:23:31 -0000
*************** substitute_and_fold (void)
*** 385,390 ****
--- 385,391 ----
if (replace_uses_in (stmt, &replaced_address))
{
fold_stmt (bsi_stmt_ptr (i));
+ stmt = bsi_stmt(i);
modify_stmt (stmt);
if (replaced_address)
mark_new_vars_to_rename (stmt, vars_to_rename);