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
35b2eb05
Commit
35b2eb05
authored
Feb 27, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(allocno_compare): Give multi-word regs higher priority, as stated in
the comments. From-SVN: r6650
parent
6680889f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gcc/global.c
+5
-5
No files found.
gcc/global.c
View file @
35b2eb05
/* Allocate registers for pseudo-registers that span basic blocks.
Copyright (C) 1987, 1988, 1991 Free Software Foundation, Inc.
Copyright (C) 1987, 1988, 1991
, 1994
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -573,12 +573,12 @@ allocno_compare (v1, v2)
Multiplying this by 10000 can't overflow. */
register
int
pri1
=
(((
double
)
(
floor_log2
(
allocno_n_refs
[
*
v1
])
*
allocno_n_refs
[
*
v1
])
/
(
allocno_live_length
[
*
v1
]
*
allocno_size
[
*
v1
])
)
*
10000
);
/
allocno_live_length
[
*
v1
]
)
*
10000
*
allocno_size
[
*
v1
]
);
register
int
pri2
=
(((
double
)
(
floor_log2
(
allocno_n_refs
[
*
v2
])
*
allocno_n_refs
[
*
v2
])
/
(
allocno_live_length
[
*
v2
]
*
allocno_size
[
*
v2
])
)
*
10000
);
/
allocno_live_length
[
*
v2
]
)
*
10000
*
allocno_size
[
*
v2
]
);
if
(
pri2
-
pri1
)
return
pri2
-
pri1
;
...
...
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