Commit 6d078c9a by Vladimir Makarov Committed by Vladimir Makarov

re PR target/88207 (gcc.target/i386/pr22076.c etc. FAIL)

2018-11-28  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/88207
	* ira-costs.c (scan_one_insn): Process subregs when updating costs
	for pseudos and allocnos from insn.

From-SVN: r266582
parent bdd0bd5c
2018-11-28 Vladimir Makarov <vmakarov@redhat.com>
PR target/88207
* ira-costs.c (scan_one_insn): Process subregs when updating costs
for pseudos and allocnos from insn.
2018-11-28 David Edelsohn <dje.gcc@gmail.com>
* config/rs6000/aix72.h: Update to match aix71.h changes.
......@@ -1535,10 +1535,14 @@ scan_one_insn (rtx_insn *insn)
/* Now add the cost for each operand to the total costs for its
allocno. */
for (i = 0; i < recog_data.n_operands; i++)
if (REG_P (recog_data.operand[i])
&& REGNO (recog_data.operand[i]) >= FIRST_PSEUDO_REGISTER)
{
int regno = REGNO (recog_data.operand[i]);
rtx op = recog_data.operand[i];
if (GET_CODE (op) == SUBREG)
op = SUBREG_REG (op);
if (REG_P (op) && REGNO (op) >= FIRST_PSEUDO_REGISTER)
{
int regno = REGNO (op);
struct costs *p = COSTS (costs, COST_INDEX (regno));
struct costs *q = op_costs[i];
int *p_costs = p->cost, *q_costs = q->cost;
......@@ -1564,7 +1568,7 @@ scan_one_insn (rtx_insn *insn)
p_costs[k] += add_cost;
}
}
}
return insn;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment