diff options
author | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-28 09:43:52 +0000 |
---|---|---|
committer | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-28 09:43:52 +0000 |
commit | e5d9420b3864e1bee10962f9962086f6b4424bd9 (patch) | |
tree | 693caa7eb8b98cbb78ccdeb56f79134e22d8d581 /gcc/lra-int.h | |
parent | c72a450a93b2267ed467dccba674ffbf5cf422aa (diff) | |
download | gcc-e5d9420b3864e1bee10962f9962086f6b4424bd9.tar.gz |
-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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211010 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lra-int.h')
-rw-r--r-- | gcc/lra-int.h | 4 |
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 |