aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/large-size-array-4.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-09-26 11:55:17 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-09-26 11:55:17 +0000
commit15caa2abe98b8a46bb0225da1d81e585d904d5f2 (patch)
treef14afdbb50855b11471a4e6e7fc81ee87d8849f1 /gcc/testsuite/gcc.dg/large-size-array-4.c
parent43943e4035dfaf885484faa9a1f71ec28f4677c9 (diff)
downloadgcc-15caa2abe98b8a46bb0225da1d81e585d904d5f2.zip
gcc-15caa2abe98b8a46bb0225da1d81e585d904d5f2.tar.gz
gcc-15caa2abe98b8a46bb0225da1d81e585d904d5f2.tar.bz2
re PR tree-optimization/30375 (tree-ssa-dse incorrectly removes struct initialization)
2007-09-26 Richard Guenther <rguenther@suse.de> PR tree-optimization/30375 PR tree-optimization/33560 * tree-ssa-dse.c (get_use_of_stmt_lhs): Give up on uses with calls. Revert 2006-05-22 Aldy Hernandez <aldyh@redhat.com> * tree-ssa-dse.c (aggregate_vardecl_d): New. (dse_global_data): Add aggregate_vardecl field. (dse_possible_dead_store_p): New. Add prev_defvar variable. Allow immediate uses and previous immediate uses to differ if they are setting different parts of the whole. (get_aggregate_vardecl): New. (dse_record_partial_aggregate_store): New. (dse_whole_aggregate_clobbered_p): New. (dse_partial_kill_p): New. Call dse_maybe_record_aggregate_store(). When checking whether a STMT and its USE_STMT refer to the same memory address, check also for partial kills that clobber the whole. Move some variable definitions to the block where they are used. (aggregate_vardecl_hash): New. (aggregate_vardecl_eq): New. (aggregate_vardecl_free): New. (aggregate_whole_store_p): New. (tree_ssa_dse): Initialize and free aggregate_vardecl. Mark which aggregate stores we care about. * gcc.dg/tree-ssa/complex-4.c: XFAIL. * gcc.dg/tree-ssa/complex-5.c: Likewise. * gcc.dg/tree-ssa/ssa-dse-9.c: Likewise. * gcc.dg/torture/pr30375.c: New testcase. * gcc.dg/torture/pr33560.c: New testcase. * gcc.dg/tree-ssa/pr30375.c: Likewise. From-SVN: r128810
Diffstat (limited to 'gcc/testsuite/gcc.dg/large-size-array-4.c')
0 files changed, 0 insertions, 0 deletions