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
d07f74fa
Commit
d07f74fa
authored
Nov 10, 2019
by
Jan Hubicka
Committed by
Jan Hubicka
Nov 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
From-SVN: r278021
parent
d40e2362
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
gcc/ChangeLog
+4
-0
gcc/cgraph.c
+10
-6
No files found.
gcc/ChangeLog
View file @
d07f74fa
2019-11-10 Jan Hubicka <hubicka@ucw.cz>
* cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
2019-11-10 Jan Hubicka <hubicka@ucw.cz>
* ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
args summaries of inlined edge unless it holds info about
described reference.
gcc/cgraph.c
View file @
d07f74fa
...
...
@@ -2697,14 +2697,18 @@ cgraph_edge::maybe_hot_p (void)
return
false
;
if
(
caller
->
frequency
==
NODE_FREQUENCY_HOT
)
return
true
;
/* If profile is now known yet, be conservative.
FIXME: this predicate is used by early inliner and can do better there. */
if
(
symtab
->
state
<
IPA_SSA
)
if
(
!
count
.
initialized_p
())
return
true
;
if
(
caller
->
frequency
==
NODE_FREQUENCY_EXECUTED_ONCE
&&
sreal_frequency
()
*
2
<
3
)
cgraph_node
*
where
=
caller
->
inlined_to
?
caller
->
inlined_to
:
caller
;
if
(
!
where
->
count
.
initialized_p
()
)
return
false
;
if
(
sreal_frequency
()
*
PARAM_VALUE
(
HOT_BB_FREQUENCY_FRACTION
)
<=
1
)
if
(
caller
->
frequency
==
NODE_FREQUENCY_EXECUTED_ONCE
)
{
if
(
count
.
apply_scale
(
2
,
1
)
<
where
->
count
.
apply_scale
(
3
,
1
))
return
false
;
}
else
if
(
count
.
apply_scale
(
PARAM_VALUE
(
HOT_BB_FREQUENCY_FRACTION
),
1
)
<
where
->
count
)
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