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
259a61d4
Commit
259a61d4
authored
Nov 11, 2017
by
Jan Hubicka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* predict.c (maybe_hot_frequency_p): Do not use cfun.
From-SVN: r254652
parent
c33538e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gcc/predict.c
+2
-2
No files found.
gcc/predict.c
View file @
259a61d4
...
...
@@ -137,12 +137,12 @@ maybe_hot_frequency_p (struct function *fun, int freq)
if
(
profile_status_for_fn
(
fun
)
==
PROFILE_ABSENT
)
return
true
;
if
(
node
->
frequency
==
NODE_FREQUENCY_EXECUTED_ONCE
&&
freq
<
(
ENTRY_BLOCK_PTR_FOR_FN
(
fun
)
->
count
.
to_frequency
(
c
fun
)
*
2
/
3
))
&&
freq
<
(
ENTRY_BLOCK_PTR_FOR_FN
(
fun
)
->
count
.
to_frequency
(
fun
)
*
2
/
3
))
return
false
;
if
(
PARAM_VALUE
(
HOT_BB_FREQUENCY_FRACTION
)
==
0
)
return
false
;
if
(
freq
*
PARAM_VALUE
(
HOT_BB_FREQUENCY_FRACTION
)
<
ENTRY_BLOCK_PTR_FOR_FN
(
fun
)
->
count
.
to_frequency
(
c
fun
))
<
ENTRY_BLOCK_PTR_FOR_FN
(
fun
)
->
count
.
to_frequency
(
fun
))
return
false
;
return
true
;
}
...
...
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