Go to file
Sebastian Pop e1fd038a0c Do not check whether memory references accessed in every iteration trap.
This patch relaxes the checks from gimple_could_trap_p in order to
allow the flag_loop_if_convert_stores to if-convert more loops
in which it is possible to prove that:

- the accesses to an array in a loop do not trap (more than the
  original non-if-converted loop).  This is true when the memory
  accesses are executed at every iteration of the if-converted loop.

- the writes to memory occur on arrays that are not const qualified.
  This is true when there exists at least one unconditional write to
  the array in the analyzed program.  In this patch this analysis is
  limited to the loop to be if-converted.

	* gimple.c (gimple_could_trap_p_1): Not static anymore.
	Pass an extra bool parameter include_mem.
	(gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
	(gimple_assign_rhs_could_trap_p): Same.
	* gimple.h (gimple_could_trap_p_1): Declared.
	* tree-data-ref.h (same_data_refs_base_objects): New.
	(same_data_refs): New.
	* tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
	(write_memrefs_written_at_least_once): New.
	(ifcvt_memrefs_wont_trap): New.
	(operations_could_trap): New.
	(ifcvt_could_trap_p): New.
	(if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
	Gets a vector of data refs.
	(if_convertible_stmt_p): Same.
	(if_convertible_loop_p_1): New.
	(if_convertible_loop_p): Call if_convertible_loop_p_1.

	* gcc.dg/tree-ssa/ifc-5.c: New.

From-SVN: r163531
2010-08-24 23:35:56 +00:00
boehm-gc
config Fix misquoting in stdint.m4. 2010-08-21 12:18:02 +00:00
contrib
fixincludes
gcc Do not check whether memory references accessed in every iteration trap. 2010-08-24 23:35:56 +00:00
gnattools
include
INSTALL
intl
libada
libcpp re PR bootstrap/45376 (no such instruction: `pcmpestri $0,(%rdi),%xmm0') 2010-08-24 14:08:05 -07:00
libdecnumber Fix misquoting in stdint.m4. 2010-08-21 12:18:02 +00:00
libffi
libgcc
libgfortran re PR libfortran/45323 (warnings compiling libgfortran/io/write.c: array subscript has type 'char') 2010-08-23 14:39:20 +02:00
libgomp Fix misquoting in stdint.m4. 2010-08-21 12:18:02 +00:00
libiberty pex-common.c (pex_read_err): Set stderr_pipe to -1 if a corresponding stream has been opened. 2010-08-20 22:39:58 +00:00
libjava
libmudflap
libobjc
libssp
libstdc++-v3 Fix misquoting in stdint.m4. 2010-08-21 12:18:02 +00:00
lto-plugin
maintainer-scripts gcc_release (snapshot_print): Also include an sha1 hash for every tarball. 2010-08-23 18:52:06 +00:00
zlib
ABOUT-NLS
ChangeLog MAINTAINERS (OS Port Maintainers): Remove myself from windows ports 2010-08-24 22:41:34 +00:00
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure
configure.ac
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS MAINTAINERS (OS Port Maintainers): Remove myself from windows ports 2010-08-24 22:41:34 +00:00
Makefile.def
Makefile.in
Makefile.tpl
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.