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
e1a921dd
Commit
e1a921dd
authored
Jul 03, 2017
by
Jan Hubicka
Committed by
Jan Hubicka
Jul 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
From-SVN: r249908
parent
b5db8b44
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
gcc/ChangeLog
+4
-0
gcc/tree-cfg.c
+6
-1
No files found.
gcc/ChangeLog
View file @
e1a921dd
2017
-
07
-
02
Jan
Hubicka
<
hubicka
@
ucw
.
cz
>
*
tree
-
cfg
.
c
(
gimple_find_sub_bbs
):
Fix
profile
updating
.
2017
-
07
-
02
Jan
Hubicka
<
hubicka
@
ucw
.
cz
>
*
tree
-
cfgcleanup
.
c
(
want_merge_blocks_p
):
New
function
.
(
cleanup_tree_cfg_bb
):
Use
it
.
*
profile
-
count
.
h
(
profile_count
::
of_for_merging
,
profile_count
::
merge
):
...
...
gcc/tree-cfg.c
View file @
e1a921dd
...
...
@@ -1051,6 +1051,7 @@ gimple_find_sub_bbs (gimple_seq seq, gimple_stmt_iterator *gsi)
struct
omp_region
*
cur_region
=
NULL
;
profile_count
cnt
=
profile_count
::
zero
();
int
freq
=
0
;
bool
all
=
true
;
int
cur_omp_region_idx
=
0
;
int
mer
=
make_edges_bb
(
bb
,
&
cur_region
,
&
cur_omp_region_idx
);
...
...
@@ -1061,12 +1062,16 @@ gimple_find_sub_bbs (gimple_seq seq, gimple_stmt_iterator *gsi)
edge_iterator
ei
;
FOR_EACH_EDGE
(
e
,
ei
,
bb
->
preds
)
{
if
(
e
->
count
.
initialized_p
())
cnt
+=
e
->
count
;
else
all
=
false
;
freq
+=
EDGE_FREQUENCY
(
e
);
}
tree_guess_outgoing_edge_probabilities
(
bb
);
if
(
all
||
profile_status_for_fn
(
cfun
)
==
PROFILE_READ
)
bb
->
count
=
cnt
;
bb
->
frequency
=
freq
;
tree_guess_outgoing_edge_probabilities
(
bb
);
FOR_EACH_EDGE
(
e
,
ei
,
bb
->
succs
)
e
->
count
=
bb
->
count
.
apply_probability
(
e
->
probability
);
...
...
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