]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/lra-assigns.c
re PR target/83712 ("Unable to find a register to spill" when compiling for thumb1)
authorVladimir Makarov <vmakarov@redhat.com>
Tue, 13 Mar 2018 20:42:49 +0000 (20:42 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Tue, 13 Mar 2018 20:42:49 +0000 (20:42 +0000)
commit6027ea4cd7b1e955cf7cd61e9178a89d89e3dbe2
tree238e7d9dada206bba93256cb01455ec15fea1ea6
parent949aab190a4ff95d4ba71f55e8b77a2aae61457f
re PR target/83712 ("Unable to find a register to spill" when compiling for thumb1)

2018-03-13  Vladimir Makarov  <vmakarov@redhat.com>

PR target/83712
* lra-assigns.c (find_all_spills_for): Ignore uninteresting
pseudos.
(assign_by_spills): Return a flag of reload assignment failure.
Do not process the reload assignment failures.  Do not spill other
reload pseudos if they has the same reg class.  Update n if
necessary.
(lra_assign): Add a return arg.  Set up from the result of
assign_by_spills call.
(find_reload_regno_insns, lra_split_hard_reg_for): New functions.
* lra-constraints.c (split_reg): Add a new arg.  Use it instead of
usage_insns if it is not NULL.
(spill_hard_reg_in_range): New function.
(split_if_necessary, inherit_in_ebb): Pass a new arg to split_reg.
* lra-int.h (spill_hard_reg_in_range, lra_split_hard_reg_for): New
function prototypes.
(lra_assign): Change prototype.
* lra.c (lra): Add code to deal with fails by splitting hard reg
live ranges.

From-SVN: r258504
gcc/ChangeLog
gcc/lra-assigns.c
gcc/lra-constraints.c
gcc/lra-int.h
gcc/lra.c