From 5dc1390b41db5c1765e25fd21dad1a930a015aac Mon Sep 17 00:00:00 2001 From: "Vladimir N. Makarov" Date: Mon, 9 Mar 2020 14:05:09 -0400 Subject: [PATCH] Revert: One more patch for PR93564: Prefer smaller hard regno when we do not honor reg alloc order. 2020-03-09 Vladimir Makarov Revert: 2020-02-28 Vladimir Makarov PR rtl-optimization/93564 * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we do not honor reg alloc order. --- gcc/ChangeLog | 10 ++++++++++ gcc/ira-color.c | 4 +--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99f001154c3..6c20ddba54a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2020-03-09 Vladimir Makarov + + Revert: + + 2020-02-28 Vladimir Makarov + + 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 PR inline-asm/94095 diff --git a/gcc/ira-color.c b/gcc/ira-color.c index a2bf108c38e..0ffdd192020 100644 --- a/gcc/ira-color.c +++ b/gcc/ira-color.c @@ -1925,9 +1925,7 @@ assign_hard_reg (ira_allocno_t a, bool retry_p) } if (min_cost > cost) min_cost = cost; - if (min_full_cost > full_cost - || (!HONOR_REG_ALLOC_ORDER && min_full_cost == full_cost - && best_hard_regno > hard_regno)) + if (min_full_cost > full_cost) { min_full_cost = full_cost; best_hard_regno = hard_regno; -- 2.30.2