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
d4017fd3
Commit
d4017fd3
authored
Nov 13, 2017
by
Jan Hubicka
Committed by
Jan Hubicka
Nov 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-ssa-sink.c (select_best_block): Do not use frequencies.
From-SVN: r254698
parent
2f02b2c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gcc/ChangeLog
+4
-0
gcc/tree-ssa-sink.c
+4
-2
No files found.
gcc/ChangeLog
View file @
d4017fd3
2017
-
11
-
13
Jan
Hubicka
<
hubicka
@
ucw
.
cz
>
*
tree
-
ssa
-
sink
.
c
(
select_best_block
):
Do
not
use
frequencies
.
2017
-
11
-
13
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
PR
lto
/
81351
gcc/tree-ssa-sink.c
View file @
d4017fd3
...
...
@@ -226,8 +226,10 @@ select_best_block (basic_block early_bb,
/* If BEST_BB is at the same nesting level, then require it to have
significantly lower execution frequency to avoid gratutious movement. */
if
(
bb_loop_depth
(
best_bb
)
==
bb_loop_depth
(
early_bb
)
&&
best_bb
->
count
.
to_frequency
(
cfun
)
<
(
early_bb
->
count
.
to_frequency
(
cfun
)
*
threshold
/
100
.
0
))
/* If result of comparsion is unknown, preffer EARLY_BB.
Thus use !(...>=..) rather than (...<...) */
&&
!
(
best_bb
->
count
.
apply_scale
(
100
,
1
)
>
(
early_bb
->
count
.
apply_scale
(
threshold
,
1
))))
return
best_bb
;
/* No better block found, so return EARLY_BB, which happens to be the
...
...
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