OSDN Git Service

* tree-ssa-dom.c (cprop_into_stmt): Do not call
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 May 2005 02:54:06 +0000 (02:54 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 May 2005 02:54:06 +0000 (02:54 +0000)
commitf2fae51fba2928d03271b3d73408b90947832974
tree83e8422ca8c90a302030075b4f2619a0b55f42df
parent22bcc29fa42a74e3669b6997e29b8b584f4fd25b
* tree-ssa-dom.c (cprop_into_stmt): Do not call
recompute_tree_invariant_for_addr_expr here.
(optimize_stmt): Call it here instead and do so if anything
at all has changed in the statement and the RHS is an ADDR_EXPR.
* tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): If
needed, call recompute_tree_invariant_for_addr_expr.
* tree-ssa-propagate.c (substitute_and_fold): Call
recompute_tree_invariant_for_addr_expr as needed.

* gcc.c-torture/compile/pr21638.c: New test.
* gcc.c-torture/compile/20050520-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100092 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20050520-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr21638.c [new file with mode: 0644]
gcc/tree-ssa-dom.c
gcc/tree-ssa-forwprop.c
gcc/tree-ssa-propagate.c