OSDN Git Service

2006-01-05 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jan 2006 13:53:54 +0000 (13:53 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jan 2006 13:53:54 +0000 (13:53 +0000)
commitdb22d3cc2fb885dec7aea38a58ee7775d93d7dd1
tree6cf1f63c9110bc738fd2520546f623d74c55ebb4
parent30afe54504cdc744a64e0473bdb27995c07d76d4
2006-01-05  Richard Guenther  <rguenther@suse.de>
    Diego Novillo  <dnovillo@redhat.com>

* tree-pass.h (TODO_remove_unused_locals): Define.
* gimple-low.c (expand_var_p, remove_useless_vars,
pass_remove_useless_vars): Remove.  Update all users.
* tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
(remove_unused_locals): New function.
* tree-flow.h (remove_unused_locals): Declare.
* passes.c (execute_todo): Call remove_unused_locals if
TODO_remove_unused_locals is set.
* tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
* tree-ssa-dce.c (pass_dce): Likewise.
* tree-outof-ssa.c (pass_del_ssa): Likewise.

* gcc.dg/tree-ssa/loop-11.c: Deal with removed vars pass.
* gcc.dg/tree-ssa/loop-8.c: Likewise.
* gcc.dg/tree-ssa/loop-1.c: Likewise.
* gcc.dg/tree-ssa/pr23294.c: Likewise.
* gcc.dg/tree-ssa/pr21985.c: Likewise.
* gcc.dg/tree-ssa/loop-14.c: Likewise.
* gcc.dg/tree-ssa/loop-2.c: Likewise.
* gcc.dg/tree-ssa/loop-3.c: Likewise.
* gcc.dg/tree-ssa/loop-4.c: Likewise.
* gcc.dg/tree-ssa/pr21171.c: Likewise.
* gcc.dg/tree-ssa/loop-5.c: Likewise.
* gcc.dg/tree-ssa/loop-10.c: Likewise.
* gcc.dg/tree-ssa/loop-6.c: Likewise.
* treelang/compile/extravar.tree: Likewise.
* g++.dg/tree-ssa/ssa-cast-1.C: Likewise.
* g++.dg/tree-ssa/pointer-reference-alias.C: Likewise.
* g++.dg/tree-ssa/ssa-sra-1.C: Likewise.
* g++.dg/tree-ssa/ssa-sra-2.C: Likewise.
* gcc.dg/tree-ssa/20031106-6.c: Disable SRA.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109379 138bc75d-0d04-0410-961f-82ee72b054a4
29 files changed:
gcc/ChangeLog
gcc/gimple-low.c
gcc/passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pointer-reference-alias.C
gcc/testsuite/g++.dg/tree-ssa/ssa-cast-1.C
gcc/testsuite/g++.dg/tree-ssa/ssa-sra-1.C
gcc/testsuite/g++.dg/tree-ssa/ssa-sra-2.C
gcc/testsuite/gcc.dg/tree-ssa/20031106-6.c
gcc/testsuite/gcc.dg/tree-ssa/loop-1.c
gcc/testsuite/gcc.dg/tree-ssa/loop-10.c
gcc/testsuite/gcc.dg/tree-ssa/loop-11.c
gcc/testsuite/gcc.dg/tree-ssa/loop-14.c
gcc/testsuite/gcc.dg/tree-ssa/loop-2.c
gcc/testsuite/gcc.dg/tree-ssa/loop-3.c
gcc/testsuite/gcc.dg/tree-ssa/loop-4.c
gcc/testsuite/gcc.dg/tree-ssa/loop-5.c
gcc/testsuite/gcc.dg/tree-ssa/loop-6.c
gcc/testsuite/gcc.dg/tree-ssa/loop-8.c
gcc/testsuite/gcc.dg/tree-ssa/pr21171.c
gcc/testsuite/gcc.dg/tree-ssa/pr21985.c
gcc/testsuite/gcc.dg/tree-ssa/pr23294.c
gcc/testsuite/treelang/compile/extravar.tree
gcc/tree-flow.h
gcc/tree-into-ssa.c
gcc/tree-outof-ssa.c
gcc/tree-pass.h
gcc/tree-ssa-dce.c
gcc/tree-ssa-live.c