diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2019-11-06 23:46:04 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2019-11-06 23:46:04 +0000 |
commit | 3f05648b8a9e97d5c01cafa99986e79ec9dc5986 (patch) | |
tree | 3f5aad77e314eed1e164cd748c86440bb16e9d97 | |
parent | 3b100c187605e4fb7088d8dbc896d8a561b111da (diff) |
Backport from mainline
2018-09-19 John David Anglin <danglin@gcc.gnu.org>
PR rtl-optimization/85458
* config/pa/pa.c (pa_adjust_priority): Delete.
(TARGET_SCHED_ADJUST_PRIORITY): Delete define.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-8-branch@277894 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/config/pa/pa.c | 34 |
2 files changed, 9 insertions, 34 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f9324902d09..353da6dc0ff 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2019-11-06 John David Anglin <danglin@gcc.gnu.org> + + Backport from mainline + 2018-09-19 John David Anglin <danglin@gcc.gnu.org> + + PR rtl-optimization/85458 + * config/pa/pa.c (pa_adjust_priority): Delete. + (TARGET_SCHED_ADJUST_PRIORITY): Delete define. + 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org> Backport from trunk diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 167539c4151..715877d0b8b 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -123,7 +123,6 @@ static void pa_linux_output_function_prologue (FILE *) ATTRIBUTE_UNUSED; static void update_total_code_bytes (unsigned int); static void pa_output_function_epilogue (FILE *); static int pa_adjust_cost (rtx_insn *, int, rtx_insn *, int, unsigned int); -static int pa_adjust_priority (rtx_insn *, int); static int pa_issue_rate (void); static int pa_reloc_rw_mask (void); static void pa_som_asm_init_sections (void) ATTRIBUTE_UNUSED; @@ -279,8 +278,6 @@ static size_t n_deferred_plabels = 0; #undef TARGET_SCHED_ADJUST_COST #define TARGET_SCHED_ADJUST_COST pa_adjust_cost -#undef TARGET_SCHED_ADJUST_PRIORITY -#define TARGET_SCHED_ADJUST_PRIORITY pa_adjust_priority #undef TARGET_SCHED_ISSUE_RATE #define TARGET_SCHED_ISSUE_RATE pa_issue_rate @@ -4991,37 +4988,6 @@ pa_adjust_cost (rtx_insn *insn, int dep_type, rtx_insn *dep_insn, int cost, } } -/* Adjust scheduling priorities. We use this to try and keep addil - and the next use of %r1 close together. */ -static int -pa_adjust_priority (rtx_insn *insn, int priority) -{ - rtx set = single_set (insn); - rtx src, dest; - if (set) - { - src = SET_SRC (set); - dest = SET_DEST (set); - if (GET_CODE (src) == LO_SUM - && symbolic_operand (XEXP (src, 1), VOIDmode) - && ! read_only_operand (XEXP (src, 1), VOIDmode)) - priority >>= 3; - - else if (GET_CODE (src) == MEM - && GET_CODE (XEXP (src, 0)) == LO_SUM - && symbolic_operand (XEXP (XEXP (src, 0), 1), VOIDmode) - && ! read_only_operand (XEXP (XEXP (src, 0), 1), VOIDmode)) - priority >>= 1; - - else if (GET_CODE (dest) == MEM - && GET_CODE (XEXP (dest, 0)) == LO_SUM - && symbolic_operand (XEXP (XEXP (dest, 0), 1), VOIDmode) - && ! read_only_operand (XEXP (XEXP (dest, 0), 1), VOIDmode)) - priority >>= 3; - } - return priority; -} - /* The 700 can only issue a single insn at a time. The 7XXX processors can issue two insns at a time. The 8000 can issue 4 insns at a time. */ |