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
90b2566b
Commit
90b2566b
authored
Nov 11, 2017
by
Jan Hubicka
Committed by
Jan Hubicka
Nov 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-ssa-loop-im.c (execute_sm_if_changed): Do not compute freq_sum.
From-SVN: r254653
parent
259a61d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
gcc/ChangeLog
+4
-0
gcc/tree-ssa-loop-im.c
+0
-2
No files found.
gcc/ChangeLog
View file @
90b2566b
2017
-
11
-
10
Jan
Hubicka
<
hubicka
@
ucw
.
cz
>
*
tree
-
ssa
-
loop
-
im
.
c
(
execute_sm_if_changed
):
Do
not
compute
freq_sum
.
2017
-
11
-
10
Jan
Hubicka
<
hubicka
@
ucw
.
cz
>
*
predict
.
c
(
maybe_hot_frequency_p
):
Do
not
use
cfun
.
2017
-
11
-
10
Jan
Hubicka
<
hubicka
@
ucw
.
cz
>
gcc/tree-ssa-loop-im.c
View file @
90b2566b
...
...
@@ -1781,7 +1781,6 @@ execute_sm_if_changed (edge ex, tree mem, tree tmp_var, tree flag,
struct
prev_flag_edges
*
prev_edges
=
(
struct
prev_flag_edges
*
)
ex
->
aux
;
bool
irr
=
ex
->
flags
&
EDGE_IRREDUCIBLE_LOOP
;
int
freq_sum
=
0
;
profile_count
count_sum
=
profile_count
::
zero
();
int
nbbs
=
0
,
ncount
=
0
;
profile_probability
flag_probability
=
profile_probability
::
uninitialized
();
...
...
@@ -1803,7 +1802,6 @@ execute_sm_if_changed (edge ex, tree mem, tree tmp_var, tree flag,
for
(
hash_set
<
basic_block
>::
iterator
it
=
flag_bbs
->
begin
();
it
!=
flag_bbs
->
end
();
++
it
)
{
freq_sum
+=
(
*
it
)
->
count
.
to_frequency
(
cfun
);
if
((
*
it
)
->
count
.
initialized_p
())
count_sum
+=
(
*
it
)
->
count
,
ncount
++
;
if
(
dominated_by_p
(
CDI_DOMINATORS
,
ex
->
src
,
*
it
))
...
...
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