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
b080c137
Commit
b080c137
authored
Aug 02, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(reload): Add IN_ADDR to IN_ADDR_ADDR when computing needs since they conflict.
From-SVN: r14635
parent
505923a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
gcc/reload1.c
+10
-10
No files found.
gcc/reload1.c
View file @
b080c137
...
@@ -1193,7 +1193,6 @@ reload (first, global, dumpfile)
...
@@ -1193,7 +1193,6 @@ reload (first, global, dumpfile)
new_basic_block_needs
=
1
;
new_basic_block_needs
=
1
;
}
}
mode
=
reload_inmode
[
i
];
mode
=
reload_inmode
[
i
];
if
(
GET_MODE_SIZE
(
reload_outmode
[
i
])
>
GET_MODE_SIZE
(
mode
))
if
(
GET_MODE_SIZE
(
reload_outmode
[
i
])
>
GET_MODE_SIZE
(
mode
))
mode
=
reload_outmode
[
i
];
mode
=
reload_outmode
[
i
];
...
@@ -1326,10 +1325,9 @@ reload (first, global, dumpfile)
...
@@ -1326,10 +1325,9 @@ reload (first, global, dumpfile)
k
<
reload_n_operands
;
k
++
)
k
<
reload_n_operands
;
k
++
)
{
{
in_max
in_max
=
MAX
(
in_max
,
insn_needs
.
in_addr
[
k
].
regs
[
j
][
i
]);
in_max
=
MAX
(
in_max
,
=
MAX
(
in_max
,
insn_needs
.
in_addr_addr
[
k
].
regs
[
j
][
i
]);
(
insn_needs
.
in_addr
[
k
].
regs
[
j
][
i
]
+
insn_needs
.
in_addr_addr
[
k
].
regs
[
j
][
i
]));
out_max
out_max
=
MAX
(
out_max
,
insn_needs
.
out_addr
[
k
].
regs
[
j
][
i
]);
=
MAX
(
out_max
,
insn_needs
.
out_addr
[
k
].
regs
[
j
][
i
]);
out_max
out_max
...
@@ -5437,12 +5435,14 @@ choose_reload_regs (insn, avoid_return_reg)
...
@@ -5437,12 +5435,14 @@ choose_reload_regs (insn, avoid_return_reg)
register
int
r
=
reload_order
[
j
];
register
int
r
=
reload_order
[
j
];
/* Ignore reloads that got marked inoperative. */
/* Ignore reloads that got marked inoperative. */
if
(
reload_out
[
r
]
==
0
&&
reload_in
[
r
]
==
0
&&
!
reload_secondary_p
[
r
])
if
(
reload_out
[
r
]
==
0
&&
reload_in
[
r
]
==
0
&&
!
reload_secondary_p
[
r
])
continue
;
continue
;
/* If find_reloads chose a to use reload_in or reload_out as a reload
/* If find_reloads chose a to use reload_in or reload_out as a reload
register, we don't need to chose one. Otherwise, try even if it found
register, we don't need to chose one. Otherwise, try even if it
one since we might save an insn if we find the value lying around. */
found one since we might save an insn if we find the value lying
around. */
if
(
reload_in
[
r
]
!=
0
&&
reload_reg_rtx
[
r
]
!=
0
if
(
reload_in
[
r
]
!=
0
&&
reload_reg_rtx
[
r
]
!=
0
&&
(
rtx_equal_p
(
reload_in
[
r
],
reload_reg_rtx
[
r
])
&&
(
rtx_equal_p
(
reload_in
[
r
],
reload_reg_rtx
[
r
])
||
rtx_equal_p
(
reload_out
[
r
],
reload_reg_rtx
[
r
])))
||
rtx_equal_p
(
reload_out
[
r
],
reload_reg_rtx
[
r
])))
...
@@ -5474,9 +5474,9 @@ choose_reload_regs (insn, avoid_return_reg)
...
@@ -5474,9 +5474,9 @@ choose_reload_regs (insn, avoid_return_reg)
an object that is already in a register of the desired class.
an object that is already in a register of the desired class.
This would avoid the need for the secondary reload register.
This would avoid the need for the secondary reload register.
But this is complex because we can't easily determine what
But this is complex because we can't easily determine what
objects might want to be loaded via this reload. So let a
register
objects might want to be loaded via this reload. So let a
be allocated here. In `emit_reload_insns' we suppress one of the
register be allocated here. In `emit_reload_insns' we suppress
loads in the case described above. */
one of the
loads in the case described above. */
if
(
inheritance
)
if
(
inheritance
)
{
{
...
...
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