gcc/gcc c-lang.c cgraphunit.c langhooks-def.h ...
ctice@gcc.gnu.org
ctice@gcc.gnu.org
Tue Feb 1 19:14:00 GMT 2005
CVSROOT: /cvs/gcc
Module name: gcc
Branch: struct-reorg-branch
Changes by: ctice@gcc.gnu.org 2005-02-01 19:14:16
Modified files:
gcc : c-lang.c cgraphunit.c langhooks-def.h
langhooks.c langhooks.h struct-reorg.c
ChangeLog.struct-reorg
Log message:
Update struct reorg optimization to use MEM_REF array structures and to use
Ken Zadeck's analyses.
2005-02-01 Caroline Tice <ctice@apple.com>
* c-lang.c (LANG_HOOKS_OPTIMIZE_BUILD_ARRAY_REF) New lang hooks
definition.
* cgraphunit.c (cgraph_optimize): Move call to structure reorg
optimization to occur after the ipa_passes.
* langhooks-def.h (lhd_optimize_build_array_ref): New extern function
declaration.
(LANG_HOOKS_OPTIMIZE_BUILD_ARRAY_REF): New macro definition.
(LANG_HOOKS_OTPIMIZE_INITIALIZER): Add new initializer for
build_array_ref.
* langhooks.c (lhd_optimize_build_array_ref): New function.
* langhooks.h (struct lang_hooks_for_optimizations): Add new field,
build_array_ref.
* struct-reorg.c (ipa-static.h): Add include statement.
(get_stmt_accessed_fields_1): Add test for MEM_REF.
(collect_mallco_data): Add test for "xmalloc"
(create_cascading_mallocs): Add new arguments to calls to
cgraph_create_edge.
(create_new_mallocs): Add code to allow "xmalloc".
(update_field_accesses): Add code to check for and properly handle
MEM_REF.
(perforem_escape_analysis): Add code to deal with nested pointer types.
(peel_structs): Add comment.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-lang.c.diff?cvsroot=gcc&only_with_tag=struct-reorg-branch&r1=1.94.2.20.2.3.2.3&r2=1.94.2.20.2.3.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cgraphunit.c.diff?cvsroot=gcc&only_with_tag=struct-reorg-branch&r1=1.1.4.35.2.12.2.19&r2=1.1.4.35.2.12.2.20
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks-def.h.diff?cvsroot=gcc&only_with_tag=struct-reorg-branch&r1=1.34.2.29.2.5.2.4&r2=1.34.2.29.2.5.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks.c.diff?cvsroot=gcc&only_with_tag=struct-reorg-branch&r1=1.31.2.22.2.4.2.4&r2=1.31.2.22.2.4.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks.h.diff?cvsroot=gcc&only_with_tag=struct-reorg-branch&r1=1.42.2.30.2.4.2.4&r2=1.42.2.30.2.4.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/struct-reorg.c.diff?cvsroot=gcc&only_with_tag=struct-reorg-branch&r1=1.1.2.18&r2=1.1.2.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.struct-reorg.diff?cvsroot=gcc&only_with_tag=struct-reorg-branch&r1=1.1.2.30&r2=1.1.2.31
More information about the Gcc-cvs
mailing list