summaryrefslogtreecommitdiff
path: root/gcc/lra-int.h
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2014-05-28 09:43:52 +0000
committerTom de Vries <vries@gcc.gnu.org>2014-05-28 09:43:52 +0000
commitb8c6a45ab7a0a6c8c7a6315f255312b32b5a8403 (patch)
tree693caa7eb8b98cbb78ccdeb56f79134e22d8d581 /gcc/lra-int.h
parentdbe7d9e3ffd9c5cdb879dd705ed86da5972773ac (diff)
-fuse-caller-save - Support in lra
2014-05-28 Tom de Vries <tom@codesourcery.com> * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set. * lra.c (initialize_lra_reg_info_element): Add init of actual_call_used_reg_set field. (lra): Call lra_create_live_ranges before lra_inheritance for -fuse-caller-save. * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for -fuse-caller-save. * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set instead of call_used_reg_set for -fuse-caller-save. * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set. From-SVN: r211010
Diffstat (limited to 'gcc/lra-int.h')
-rw-r--r--gcc/lra-int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/lra-int.h b/gcc/lra-int.h
index 41c98492973..98a30183caa 100644
--- a/gcc/lra-int.h
+++ b/gcc/lra-int.h
@@ -77,6 +77,10 @@ struct lra_reg
/* The following fields are defined only for pseudos. */
/* Hard registers with which the pseudo conflicts. */
HARD_REG_SET conflict_hard_regs;
+ /* Call used registers with which the pseudo conflicts, taking into account
+ the registers used by functions called from calls which cross the
+ pseudo. */
+ HARD_REG_SET actual_call_used_reg_set;
/* We assign hard registers to reload pseudos which can occur in few
places. So two hard register preferences are enough for them.
The following fields define the preferred hard registers. If