diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-09-30 16:39:38 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-09-30 16:39:38 +0000 |
commit | 6d1e98dfd2bfce30640d71df355bedf114229744 (patch) | |
tree | 4fd650f51b146fd95f2345a09063f202a8768f53 /gcc/tree-vect-patterns.c | |
parent | 7c3958812bd5e2e139c7f0adf8f03b505fda67f2 (diff) | |
download | gcc-6d1e98dfd2bfce30640d71df355bedf114229744.zip gcc-6d1e98dfd2bfce30640d71df355bedf114229744.tar.gz gcc-6d1e98dfd2bfce30640d71df355bedf114229744.tar.bz2 |
Make ira call df_set_regs_ever_live for extra call-clobbered regs
If we support multiple ABIs in the same translation unit, it can
sometimes be the case that a callee clobbers more registers than
its caller is allowed to. We need to call df_set_regs_ever_live
on these extra registers so that the prologue and epilogue code
can handle them appropriately.
This patch does that in IRA. I wanted to avoid another full
instruction walk just for this, so I combined it with the existing
set_paradoxical_subreg walk. This happens before the first
calculation of elimination offsets.
2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* function-abi.h (function_abi_aggregator): New class.
* function-abi.cc (function_abi_aggregator::caller_save_regs): New
function.
* ira.c (update_equiv_regs_prescan): New function. Call
set_paradoxical_subreg here rather than...
(update_equiv_regs): ...here.
(ira): Call update_equiv_regs_prescan.
From-SVN: r276339
Diffstat (limited to 'gcc/tree-vect-patterns.c')
0 files changed, 0 insertions, 0 deletions