diff options
author | Jeff Law <law@redhat.com> | 2006-03-24 16:21:27 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2006-03-24 16:21:27 -0700 |
commit | 3ae194cd59da7b8e5a4cc7e5a9e822e3c9c202c5 (patch) | |
tree | a457495224966ac0267a09cd906d32e128d74d47 /gcc/tree-ssa-dom.c | |
parent | 58df1c413d4514747ce8478caf0bfdc48711e551 (diff) | |
download | gcc-3ae194cd59da7b8e5a4cc7e5a9e822e3c9c202c5.zip gcc-3ae194cd59da7b8e5a4cc7e5a9e822e3c9c202c5.tar.gz gcc-3ae194cd59da7b8e5a4cc7e5a9e822e3c9c202c5.tar.bz2 |
tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt directly.
* tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
directly. Call mark_new_vars_to_rename slightly earlier.
* gcc.c-torture/pr26840.c: New test.
From-SVN: r112365
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r-- | gcc/tree-ssa-dom.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 9df59e9..db9f873 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -2160,7 +2160,11 @@ propagate_rhs_into_lhs (tree stmt, tree lhs, tree rhs, bitmap interesting_names) collapse control statements. */ propagate_value (use_p, rhs); fold_stmt_inplace (use_stmt); - update_stmt (use_stmt); + + /* Sometimes propagation can expose new operands to the + renamer. Note this will call update_stmt at the + appropriate time. */ + mark_new_vars_to_rename (use_stmt); /* Dump details. */ if (dump_file && (dump_flags & TDF_DETAILS)) @@ -2170,10 +2174,6 @@ propagate_rhs_into_lhs (tree stmt, tree lhs, tree rhs, bitmap interesting_names) fprintf (dump_file, "\n"); } - /* Sometimes propagation can expose new operands to the - renamer. */ - mark_new_vars_to_rename (use_stmt); - /* If we replaced a variable index with a constant, then we would need to update the invariant flag for ADDR_EXPRs. */ if (TREE_CODE (use_stmt) == MODIFY_EXPR |