diff options
author | liuhongt <hongtao.liu@intel.com> | 2023-05-16 10:36:16 +0800 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2023-05-26 09:46:18 +0800 |
commit | 4fb66b2329319e9b47e89200d613b6f741a114fc (patch) | |
tree | 9aa8ffef007b2ff24347daf789bec304003df4fd /gcc/fortran | |
parent | 5bd67d7abddca87198b11efccedee42f82e9f3a9 (diff) | |
download | gcc-4fb66b2329319e9b47e89200d613b6f741a114fc.zip gcc-4fb66b2329319e9b47e89200d613b6f741a114fc.tar.gz gcc-4fb66b2329319e9b47e89200d613b6f741a114fc.tar.bz2 |
Only use NO_REGS in cost calculation when !hard_regno_mode_ok for GENERAL_REGS and mode.
r14-172-g0368d169492017 replaces GENERAL_REGS with NO_REGS in cost
calculation when the preferred register class are not known yet.
It regressed powerpc PR109610 and PR109858, it looks too aggressive to use
NO_REGS when mode can be allocated with GENERAL_REGS.
The patch takes a step back, still use GENERAL_REGS when
hard_regno_mode_ok for mode and GENERAL_REGS, otherwise uses NO_REGS.
gcc/ChangeLog:
PR target/109610
PR target/109858
* ira-costs.cc (scan_one_insn): Only use NO_REGS in cost
calculation when !hard_regno_mode_ok for GENERAL_REGS and
mode, otherwise still use GENERAL_REGS.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions