OSDN Git Service

PR tree-optimization/1046
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Jan 2007 16:44:56 +0000 (16:44 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Jan 2007 16:44:56 +0000 (16:44 +0000)
commit9398d12b1ec956d2bc15d2e49d9e4c997fc974d1
tree40aa32737d2e736bae72a8df68748c9a126108d1
parentf41e06edf2dfdd93a5c6053f807828b58a2e6be6
PR tree-optimization/1046
* tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
when alias info is not ready.
(pass_tail_recursion): Do not require aliasing.
* tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
* tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
* tree-ssa-copy.c (pass_copy_prop): Likewise.
* tree-ssa-forwprop.c (pass_forwprop): Likewise.
* tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
* passes.c (init_optimization_passes): Execute rename_ssa_copies,
ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
before inlining.
* tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
When aliasing is not build, mark statement as volatile.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120680 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/always_inline3.c
gcc/testsuite/gcc.dg/tree-ssa/pr15349.c
gcc/testsuite/gcc.dg/tree-ssa/pr20701.c
gcc/testsuite/gcc.dg/tree-ssa/pr21658.c
gcc/testsuite/gcc.dg/tree-ssa/pr25501.c
gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-1.c
gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-2.c
gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-3.c
gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-4.c
gcc/testsuite/gcc.dg/tree-ssa/vrp05.c
gcc/testsuite/gcc.dg/tree-ssa/vrp11.c