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
cea768b0
Commit
cea768b0
authored
Jul 04, 2017
by
Jan Hubicka
Committed by
Jan Hubicka
Jul 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* haifa-sched.c (sched_create_recovery_edges): Update profile.
From-SVN: r249967
parent
4741e46d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
+17
-1
gcc/ChangeLog
+4
-0
gcc/haifa-sched.c
+13
-1
No files found.
gcc/ChangeLog
View file @
cea768b0
2017
-
07
-
04
Jan
Hubicka
<
hubicka
@
ucw
.
cz
>
*
haifa
-
sched
.
c
(
sched_create_recovery_edges
):
Update
profile
.
2017
-
07
-
04
Jan
Hubicka
<
hubicka
@
ucw
.
cz
>
*
bb
-
reorder
.
c
(
better_edge_p
):
Fix
handling
of
uninitialized
probability
.
...
...
gcc/haifa-sched.c
View file @
cea768b0
...
...
@@ -8302,7 +8302,19 @@ sched_create_recovery_edges (basic_block first_bb, basic_block rec,
else
edge_flags
=
0
;
make_edge
(
first_bb
,
rec
,
edge_flags
);
edge
e2
=
single_succ_edge
(
first_bb
);
edge
e
=
make_edge
(
first_bb
,
rec
,
edge_flags
);
/* TODO: The actual probability can be determined and is computed as
'todo_spec' variable in create_check_block_twin and
in sel-sched.c `check_ds' in create_speculation_check. */
e
->
probability
=
profile_probability
::
very_unlikely
();
e
->
count
=
first_bb
->
count
.
apply_probability
(
e
->
probability
);
rec
->
count
=
e
->
count
;
rec
->
frequency
=
EDGE_FREQUENCY
(
e
);
e2
->
probability
=
e
->
probability
.
invert
();
e2
->
count
=
first_bb
->
count
-
e2
->
count
;
rtx_code_label
*
label
=
block_label
(
second_bb
);
rtx_jump_insn
*
jump
=
emit_jump_insn_after
(
targetm
.
gen_jump
(
label
),
BB_END
(
rec
));
...
...
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