Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc Revert ira-color.c r1.2.



details:   https://anonhg.NetBSD.org/src/rev/250370191630
branches:  trunk
changeset: 1003409:250370191630
user:      maya <maya%NetBSD.org@localhost>
date:      Sat Sep 14 15:00:04 2019 +0000

description:
Revert ira-color.c r1.2.

"VAX does not fully populate the register move costs table, so do not
access it w/o checks.
Hack to work around PR toolchain/53176."

Will commit a more upstream-friendly variant shortly.

diffstat:

 external/gpl3/gcc/dist/gcc/ira-color.c |  8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diffs (18 lines):

diff -r 3b205bd8bb58 -r 250370191630 external/gpl3/gcc/dist/gcc/ira-color.c
--- a/external/gpl3/gcc/dist/gcc/ira-color.c    Sat Sep 14 14:41:23 2019 +0000
+++ b/external/gpl3/gcc/dist/gcc/ira-color.c    Sat Sep 14 15:00:04 2019 +0000
@@ -2771,13 +2771,7 @@
        }
       else
        gcc_unreachable ();
-      cost += cp->freq *
-            (   ira_register_move_cost
-             && ira_register_move_cost[allocno_mode]
-            && ira_register_move_cost[allocno_mode][rclass]
-           )
-          ? ira_register_move_cost[allocno_mode][rclass][rclass] 
-          : 0;
+      cost += cp->freq * ira_register_move_cost[allocno_mode][rclass][rclass];
     }
   return cost;
 }



Home | Main Index | Thread Index | Old Index