[PATCH] Improve spillcost of literal pool loads

2014-12-02  Wilco Dijkstra  <wdijkstr@arm.com>

  gcc/
    ira-costs.c (scan_one_insn): Improve spill cost adjustment.

  gcc/testsuite
    gcc.target/aarch64/remat1.c: New testcase.

From-SVN: r218266
This commit is contained in:
Wilco Dijkstra 2014-12-02 11:55:08 +00:00 committed by Jiong Wang
parent 47f4756ed1
commit 048f927a75
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2014-12-02 Wilco Dijkstra <wilco.dijkstra@arm.com>
* ira-costs.c (scan_one_insn): Improve spill cost adjustment.
2014-12-02 Martin Jambor <mjambor@suse.cz>
PR ipa/63814

View File

@ -1462,12 +1462,11 @@ scan_one_insn (rtx_insn *insn)
&& ((MEM_P (XEXP (note, 0))
&& !side_effects_p (SET_SRC (set)))
|| (CONSTANT_P (XEXP (note, 0))
&& targetm.legitimate_constant_p (GET_MODE (SET_DEST (set)),
XEXP (note, 0))
&& (! flag_pic || LEGITIMATE_PIC_OPERAND_P (XEXP (note, 0)))
&& REG_N_SETS (REGNO (SET_DEST (set))) == 1))
&& general_operand (SET_SRC (set), GET_MODE (SET_SRC (set))))
{
enum reg_class cl = GENERAL_REGS;
enum reg_class cl = ALL_REGS;
rtx reg = SET_DEST (set);
int num = COST_INDEX (REGNO (reg));

View File

@ -1,3 +1,7 @@
2014-12-02 Wilco Dijkstra <wilco.dijkstra@arm.com>
* gcc.target/aarch64/remat1.c: New testcase.
2014-12-01 Oleg Endo <olegendo@gcc.gnu.org>
PR rtl-optimization/59278