aboutsummaryrefslogtreecommitdiff
path: root/gcc/regs.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-04-30 09:31:07 +0930
committerAlan Modra <amodra@gcc.gnu.org>2016-04-30 09:31:07 +0930
commit91dabbb2c7bf541fa72ab45c88ec8ea0fd7771c7 (patch)
treea016d44be068e81121dd50b88c7bb7e2b08e2c1e /gcc/regs.h
parent411e5c675d26d342493d8dba910c3887c8846257 (diff)
downloadgcc-91dabbb2c7bf541fa72ab45c88ec8ea0fd7771c7.zip
gcc-91dabbb2c7bf541fa72ab45c88ec8ea0fd7771c7.tar.gz
gcc-91dabbb2c7bf541fa72ab45c88ec8ea0fd7771c7.tar.bz2
Goodbye REG_LIVE_LENGTH
* regs.h (struct reg_info_t): Delete live_length. (REG_LIVE_LENGTH): Delete macro. * regstat.c (regstat_bb_compute_ri): Delete artificial_uses, local_live, local_processed and local_live_last_luid params. Replace bb_index param with bb. Don't set REG_LIVE_LENGTH. Formatting fixes. (regstat_compute_ri): Adjust for above. Don't set REG_LIVE_LENGTH. (dump_reg_info): Don't print live length. * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH with test of setjmp_crosses. Don't set REG_LIVE_LENGTH. Localize loop_depth var. From-SVN: r235663
Diffstat (limited to 'gcc/regs.h')
-rw-r--r--gcc/regs.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/regs.h b/gcc/regs.h
index 6f992bd..244250d 100644
--- a/gcc/regs.h
+++ b/gcc/regs.h
@@ -105,7 +105,6 @@ struct reg_info_t
{
int freq; /* # estimated frequency (REG n) is used or set */
int deaths; /* # of times (REG n) dies */
- int live_length; /* # of instructions (REG n) is live */
int calls_crossed; /* # of calls (REG n) is live across */
int freq_calls_crossed; /* # estimated frequency (REG n) crosses call */
int throw_calls_crossed; /* # of calls that may throw (REG n) is live across */
@@ -170,20 +169,6 @@ extern size_t reg_info_p_size;
#define REG_N_THROWING_CALLS_CROSSED(N) (reg_info_p[N].throw_calls_crossed)
-/* Total number of instructions at which (REG n) is live.
-
- This is set in regstat.c whenever register info is requested and
- remains valid for the rest of the compilation of the function; it is
- used to control register allocation. The larger this is, the less
- priority (REG n) gets for allocation in a hard register (in IRA in
- priority-coloring mode).
-
- Negative values are special: -1 is used to mark a pseudo reg that
- should not be allocated to a hard register, because it crosses a
- setjmp call. */
-
-#define REG_LIVE_LENGTH(N) (reg_info_p[N].live_length)
-
/* Indexed by n, gives number of basic block that (REG n) is used in.
If the value is REG_BLOCK_GLOBAL (-1),
it means (REG n) is used in more than one basic block.