PR middle-end/38533
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 2008 07:54:43 +0000 (07:54 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 2008 07:54:43 +0000 (07:54 +0000)
commit9ce936943bfdc66c5adb5524b0910ace271c606a
treeb285e368e7c5678010a07f0b6719488e1e1f94b3
parent0a44dcad87293ec8c296d0bbcd80e3723c81c419
PR middle-end/38533
* tree-ssa-reassoc.c (remove_visited_stmt_chain): New function.
(rewrite_expr_tree): Add moved argument, move stmts together if
needed.  Call remove_visited_stmt_chain.
(linearize_expr_tree): Don't move stmts here.
(reassociate_bb): Call remove_visited_stmt_chain if num ops is 1.
Adjust rewrite_expr_tree caller.

* gcc.dg/tree-ssa/pr38533.c: New test.
* gcc.c-torture/execute/pr38533.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142807 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr38533.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr38533.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c