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
4d539f68
Commit
4d539f68
authored
Sep 18, 2004
by
Jan Hubicka
Committed by
Jan Hubicka
Sep 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-cfg.c (thread_jumps): Fix updating of the profile.
From-SVN: r87709
parent
0eac5feb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
gcc/ChangeLog
+2
-0
gcc/tree-cfg.c
+16
-10
No files found.
gcc/ChangeLog
View file @
4d539f68
2004
-
09
-
18
Jan
Hubicka
<
jh
@
suse
.
cz
>
*
tree
-
cfg
.
c
(
thread_jumps
):
Fix
updating
of
the
profile
.
*
tree
-
optimize
.
c
(
tree_rest_of_compilation
):
Kill
forgotten
verify_cgraph
call
.
...
...
gcc/tree-cfg.c
View file @
4d539f68
...
...
@@ -3832,7 +3832,7 @@ static bool
thread_jumps
(
void
)
{
edge
e
,
next
,
last
,
old
;
basic_block
bb
,
dest
,
tmp
,
old_dest
,
dom
;
basic_block
bb
,
dest
,
tmp
,
old_dest
,
curr
,
dom
;
tree
phi
;
int
arg
;
bool
retval
=
false
;
...
...
@@ -3891,15 +3891,6 @@ thread_jumps (void)
break
;
bb_ann
(
dest
)
->
forwardable
=
0
;
dest
->
frequency
-=
freq
;
if
(
dest
->
frequency
<
0
)
dest
->
frequency
=
0
;
dest
->
count
-=
count
;
if
(
dest
->
count
<
0
)
dest
->
count
=
0
;
dest
->
succ
->
count
-=
count
;
if
(
dest
->
succ
->
count
<
0
)
dest
->
succ
->
count
=
0
;
}
/* Reset the forwardable marks to 1. */
...
...
@@ -3936,6 +3927,21 @@ thread_jumps (void)
old_dest
=
e
->
dest
;
e
=
redirect_edge_and_branch
(
e
,
dest
);
/* Update the profile. */
if
(
profile_status
!=
PROFILE_ABSENT
)
for
(
curr
=
old_dest
;
curr
!=
dest
;
curr
=
curr
->
succ
->
dest
)
{
curr
->
frequency
-=
freq
;
if
(
curr
->
frequency
<
0
)
curr
->
frequency
=
0
;
curr
->
count
-=
count
;
if
(
curr
->
count
<
0
)
curr
->
count
=
0
;
curr
->
succ
->
count
-=
count
;
if
(
curr
->
succ
->
count
<
0
)
curr
->
succ
->
count
=
0
;
}
if
(
!
old
)
{
/* Update PHI nodes. We know that the new argument should
...
...
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