Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ff6534ad
Commit
ff6534ad
authored
Nov 24, 2000
by
Bernd Schmidt
Committed by
Bernd Schmidt
Nov 24, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix code that substitutes reloadreg into SET_DEST of previous insn.
From-SVN: r37711
parent
176f9a7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
gcc/ChangeLog
+4
-0
gcc/reload1.c
+17
-0
No files found.
gcc/ChangeLog
View file @
ff6534ad
2000-11-24 Bernd Schmidt <bernds@redhat.co.uk>
* reload1.c (conflicts_with_override): New function.
(emit_input_reload_insns): Use it to tighten test for validity
of substituting into output of previous insn.
* haifa-sched.c (struct ready_list): New.
(ready_lastpos, ready_add, ready_remove_first, ready_sort): New static
functions.
...
...
gcc/reload1.c
View file @
ff6534ad
...
...
@@ -417,6 +417,7 @@ static int reload_reg_reaches_end_p PARAMS ((unsigned int, int,
enum
reload_type
));
static
int
allocate_reload_reg
PARAMS
((
struct
insn_chain
*
,
int
,
int
));
static
int
conflicts_with_override
PARAMS
((
rtx
));
static
void
failed_reload
PARAMS
((
rtx
,
int
));
static
int
set_reload_reg
PARAMS
((
int
,
int
));
static
void
choose_reload_regs_init
PARAMS
((
struct
insn_chain
*
,
rtx
*
));
...
...
@@ -4882,6 +4883,21 @@ reload_reg_free_for_value_p (regno, opnum, type, value, out, reloadnum,
return
1
;
}
/* Determine whether the reload reg X overlaps any rtx'es used for
overriding inheritance. Return nonzero if so. */
static
int
conflicts_with_override
(
x
)
rtx
x
;
{
int
i
;
for
(
i
=
0
;
i
<
n_reloads
;
i
++
)
if
(
reload_override_in
[
i
]
&&
reg_overlap_mentioned_p
(
x
,
reload_override_in
[
i
]))
return
1
;
return
0
;
}
/* Give an error message saying we failed to find a reload for INSN,
and clear out reload R. */
static
void
...
...
@@ -6215,6 +6231,7 @@ emit_input_reload_insns (chain, rl, old, j)
&&
dead_or_set_p
(
insn
,
old
)
/* This is unsafe if some other reload
uses the same reg first. */
&&
!
conflicts_with_override
(
reloadreg
)
&&
reload_reg_free_for_value_p
(
REGNO
(
reloadreg
),
rl
->
opnum
,
rl
->
when_needed
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment