Commit 5dc1390b by Vladimir N. Makarov

Revert: One more patch for PR93564: Prefer smaller hard regno when we do not honor reg alloc order.

2020-03-09  Vladimir Makarov  <vmakarov@redhat.com>

	Revert:

	2020-02-28  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/93564
	* ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
	do not honor reg alloc order.
parent a931bb50
2020-03-09 Vladimir Makarov <vmakarov@redhat.com>
Revert:
2020-02-28 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/93564
* ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
do not honor reg alloc order.
2020-03-09 Andrew Pinski <apinski@marvell.com> 2020-03-09 Andrew Pinski <apinski@marvell.com>
PR inline-asm/94095 PR inline-asm/94095
......
...@@ -1925,9 +1925,7 @@ assign_hard_reg (ira_allocno_t a, bool retry_p) ...@@ -1925,9 +1925,7 @@ assign_hard_reg (ira_allocno_t a, bool retry_p)
} }
if (min_cost > cost) if (min_cost > cost)
min_cost = cost; min_cost = cost;
if (min_full_cost > full_cost if (min_full_cost > full_cost)
|| (!HONOR_REG_ALLOC_ORDER && min_full_cost == full_cost
&& best_hard_regno > hard_regno))
{ {
min_full_cost = full_cost; min_full_cost = full_cost;
best_hard_regno = hard_regno; best_hard_regno = hard_regno;
......
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