aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-12-14 14:21:41 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-12-14 14:21:41 +0000
commitae4dbd44baaea8b195e792c1865d02e8bf6c36b8 (patch)
tree21ef4ec05b828e6f1466e7a77d7a896095ce86bf /gcc/tree-ssa-dom.c
parent2c9fd13e905b68909db52d6868645790f935e35a (diff)
downloadgcc-ae4dbd44baaea8b195e792c1865d02e8bf6c36b8.zip
gcc-ae4dbd44baaea8b195e792c1865d02e8bf6c36b8.tar.gz
gcc-ae4dbd44baaea8b195e792c1865d02e8bf6c36b8.tar.bz2
re PR middle-end/34462 (tree check: expected ssa_name, have struct_field_tag in vuses_compare, at tree-vn.c:118)
2007-12-14 Richard Guenther <rguenther@suse.de> PR middle-end/34462 * tree-ssa-operands.h (create_ssa_artificial_load_stmt): Add parameter to say whether to unlink immediate uses. * tree-ssa-operands.c (create_ssa_artificial_load_stmt): Do not mark the artificial stmt as modified. Unlink immediate uses only if requested. * tree-ssa-dom.c (record_equivalences_from_stmt): Update caller. * tree-ssa-pre.c (insert_fake_stores): Likewise. * gcc.c-torture/compile/20071214-1.c: New testcase. From-SVN: r130931
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index 7bed1c2..bc9809e 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -1618,7 +1618,7 @@ record_equivalences_from_stmt (tree stmt, int may_optimize_p, stmt_ann_t ann)
/* Build a new statement with the RHS and LHS exchanged. */
new_stmt = build_gimple_modify_stmt (rhs, lhs);
- create_ssa_artificial_load_stmt (new_stmt, stmt);
+ create_ssa_artificial_load_stmt (new_stmt, stmt, true);
/* Finally enter the statement into the available expression
table. */