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
d546b10a
Commit
d546b10a
authored
Aug 07, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(find_reg) If CLASS_CANNOT_CHANGE_SIZE, avoid its registers if
reg_changes_size. From-SVN: r7866
parent
0f64b8f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
gcc/global.c
+14
-1
No files found.
gcc/global.c
View file @
d546b10a
...
@@ -923,6 +923,12 @@ find_reg (allocno, losers, alt_regs_p, accept_call_clobbered, retrying)
...
@@ -923,6 +923,12 @@ find_reg (allocno, losers, alt_regs_p, accept_call_clobbered, retrying)
IOR_HARD_REG_SET
(
used1
,
hard_reg_conflicts
[
allocno
]);
IOR_HARD_REG_SET
(
used1
,
hard_reg_conflicts
[
allocno
]);
#ifdef CLASS_CANNOT_CHANGE_SIZE
if
(
reg_changes_size
[
allocno_reg
[
allocno
]])
IOR_HARD_REG_SET
(
used1
,
reg_class_contents
[(
int
)
CLASS_CANNOT_CHANGE_SIZE
]);
#endif
/* Try each hard reg to see if it fits. Do this in two passes.
/* Try each hard reg to see if it fits. Do this in two passes.
In the first pass, skip registers that are preferred by some other pseudo
In the first pass, skip registers that are preferred by some other pseudo
to give it a better chance of getting one of those registers. Only if
to give it a better chance of getting one of those registers. Only if
...
@@ -1096,7 +1102,14 @@ find_reg (allocno, losers, alt_regs_p, accept_call_clobbered, retrying)
...
@@ -1096,7 +1102,14 @@ find_reg (allocno, losers, alt_regs_p, accept_call_clobbered, retrying)
if
(
local_reg_n_refs
[
regno
]
!=
0
if
(
local_reg_n_refs
[
regno
]
!=
0
/* Don't use a reg no good for this pseudo. */
/* Don't use a reg no good for this pseudo. */
&&
!
TEST_HARD_REG_BIT
(
used2
,
regno
)
&&
!
TEST_HARD_REG_BIT
(
used2
,
regno
)
&&
HARD_REGNO_MODE_OK
(
regno
,
mode
))
&&
HARD_REGNO_MODE_OK
(
regno
,
mode
)
#ifdef CLASS_CANNOT_CHANGE_SIZE
&&
!
(
reg_changes_size
[
allocno_reg
[
allocno
]]
&&
(
TEST_HARD_REG_BIT
(
reg_class_contents
[(
int
)
CLASS_CANNOT_CHANGE_SIZE
],
regno
)))
#endif
)
{
{
/* We explicitly evaluate the divide results into temporary
/* We explicitly evaluate the divide results into temporary
variables so as to avoid excess precision problems that occur
variables so as to avoid excess precision problems that occur
...
...
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