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/e8af958bb86f
branches: trunk
changeset: 454352:e8af958bb86f
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 34b41778d0b6 -r e8af958bb86f 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