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
5bb08c84
Commit
5bb08c84
authored
Sep 09, 2001
by
Jan Hubicka
Committed by
Jan Hubicka
Sep 09, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* loop.c (combine_givs): Fix computing of benefit once giv is combined.
From-SVN: r45494
parent
1eb356b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
gcc/ChangeLog
+4
-0
gcc/loop.c
+7
-0
No files found.
gcc/ChangeLog
View file @
5bb08c84
Sun
Sep
9
10
:
43
:
17
CEST
2001
Jan
Hubicka
<
jh
@suse
.
cz
>
*
loop
.
c
(
combine_givs
)
:
Fix
computing
of
benefit
once
giv
is
combined
.
2001
-
09
-
09
Richard
Henderson
<
rth
@redhat
.
com
>
2001
-
09
-
09
Richard
Henderson
<
rth
@redhat
.
com
>
*
config
/
alpha
/
alpha
.
c
(
alpha_next_sequence_number
)
:
New
.
*
config
/
alpha
/
alpha
.
c
(
alpha_next_sequence_number
)
:
New
.
...
...
gcc/loop.c
View file @
5bb08c84
...
@@ -6851,6 +6851,13 @@ restart:
...
@@ -6851,6 +6851,13 @@ restart:
g2
->
new_reg
=
can_combine
[
i
*
giv_count
+
j
];
g2
->
new_reg
=
can_combine
[
i
*
giv_count
+
j
];
g2
->
same
=
g1
;
g2
->
same
=
g1
;
/* For destination, we now may replace by mem expression instead
of register. This changes the costs considerably, so add the
compensation. */
if
(
g2
->
giv_type
==
DEST_ADDR
)
g2
->
benefit
=
(
g2
->
benefit
+
reg_address_cost
-
address_cost
(
g2
->
new_reg
,
GET_MODE
(
g2
->
mem
)));
g1
->
combined_with
++
;
g1
->
combined_with
++
;
g1
->
lifetime
+=
g2
->
lifetime
;
g1
->
lifetime
+=
g2
->
lifetime
;
...
...
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