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
f0b03e94
Commit
f0b03e94
authored
May 29, 2016
by
Jan Hubicka
Committed by
Jan Hubicka
May 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* predict.c (maybe_hot_frequency_p): Avoid division.
From-SVN: r236862
parent
036dc0a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/ChangeLog
+4
-0
gcc/predict.c
+2
-2
No files found.
gcc/ChangeLog
View file @
f0b03e94
2016-05-27 Jan Hubicka <hubicka@ucw.cz>
* predict.c (maybe_hot_frequency_p): Avoid division.
2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
* doc/install.texi: Use https for shop.fsf.org.
* doc/install.texi: Use https for shop.fsf.org.
...
...
gcc/predict.c
View file @
f0b03e94
...
@@ -115,8 +115,8 @@ maybe_hot_frequency_p (struct function *fun, int freq)
...
@@ -115,8 +115,8 @@ maybe_hot_frequency_p (struct function *fun, int freq)
return
false
;
return
false
;
if
(
PARAM_VALUE
(
HOT_BB_FREQUENCY_FRACTION
)
==
0
)
if
(
PARAM_VALUE
(
HOT_BB_FREQUENCY_FRACTION
)
==
0
)
return
false
;
return
false
;
if
(
freq
<
(
ENTRY_BLOCK_PTR_FOR_FN
(
fun
)
->
frequency
if
(
freq
*
PARAM_VALUE
(
HOT_BB_FREQUENCY_FRACTION
)
/
PARAM_VALUE
(
HOT_BB_FREQUENCY_FRACTION
))
)
<
ENTRY_BLOCK_PTR_FOR_FN
(
fun
)
->
frequency
)
return
false
;
return
false
;
return
true
;
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