Go to file
Segher Boessenkool 7157aa8583 df: Change defs in entry and uses in exit block during separate shrink-wrapping
So far all target implementations of the separate shrink-wrapping hooks
use the DF LIVE info to figure out around which basic blocks the non-
volatile registers need to be saved.  This is done by looking at the
IN+GEN+KILL sets of the basic blocks.  However, that doesn't work for
registers that DF says are defined in the entry block, or used in the
exit block.

This patch introduces a local flag DF_SCAN_EMPTY_ENTRY_EXIT that says
no registers should be defined in the entry block, and none used in the
exit block.  It also makes try_shrink_wrapping_separate use it.  The
rs6000 port is changed to use IN+GEN+KILL for the LR component.


	* config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
	component as used also if LR_REGNO is a live input to the bb.
	* df-scan.c (df_get_entry_block_def_set): Return immediately after
	clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
	(df_get_exit_block_use_set): Ditto.
	* df.h (df_scan_flags): New enum.
	* shrink-wrap.c (try_shrink_wrapping_separate): Set
	DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
	df_update_entry_block_defs and df_update_exit_block_uses
	at the start; clear the flag and call those functions at the end.

From-SVN: r242497
2016-11-16 16:23:36 +01:00
boehm-gc config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
config config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
contrib
fixincludes
gcc df: Change defs in entry and uses in exit block during separate shrink-wrapping 2016-11-16 16:23:36 +01:00
gnattools
gotools
include
INSTALL
intl config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libada config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libatomic config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libbacktrace config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libcc1
libcilkrts config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libcpp
libdecnumber config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libffi config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libgcc re PR libgcc/68468 (frv/bfin FDPIC toolchain build error) 2016-11-16 08:01:56 +01:00
libgfortran [multiple changes] 2016-11-15 23:03:00 +00:00
libgo config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libgomp libgomp testsuite: add missing map clauses 2016-11-15 20:14:32 +03:00
libiberty libiberty: demangler crash with missing :? or fold expression component. 2016-11-15 19:31:59 +00:00
libitm config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libmpx config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libobjc config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
liboffloadmic config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libquadmath config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libsanitizer Add revsison to libsanitizer/LOCAL_PATCHES 2016-11-16 11:23:47 +00:00
libssp config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
libstdc++-v3 PR 59406 note that FNV hash functions are incorrect 2016-11-15 20:17:39 +00:00
libvtv config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
lto-plugin config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
maintainer-scripts
zlib config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
ChangeLog Makefile.def: Remove references to GCJ. 2016-11-15 17:29:12 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
config.guess
config.rpath
config.sub
configure config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
configure.ac config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
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
Makefile.def Makefile.def: Remove references to GCJ. 2016-11-15 17:29:12 +00:00
Makefile.in Makefile.def: Remove references to GCJ. 2016-11-15 17:29:12 +00:00
Makefile.tpl Makefile.def: Remove references to GCJ. 2016-11-15 17:29:12 +00:00
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.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.