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
58016611
Commit
58016611
authored
Sep 20, 2004
by
Jan Hubicka
Committed by
Jan Hubicka
Sep 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* predict.c (estimate_probability): Remove unnecesary code.
From-SVN: r87736
parent
5bd91632
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
30 deletions
+6
-30
gcc/ChangeLog
+4
-0
gcc/predict.c
+2
-30
No files found.
gcc/ChangeLog
View file @
58016611
2004
-
09
-
20
Jan
Hubicka
<
jh
@
suse
.
cz
>
*
predict
.
c
(
estimate_probability
):
Remove
unnecesary
code
.
2004
-
09
-
19
Ira
Rosen
<
irar
@
il
.
ibm
.
com
>
2004
-
09
-
19
Ira
Rosen
<
irar
@
il
.
ibm
.
com
>
*
tree
-
vectorizer
.
h
(
stmt_vec_info
):
Add
vect_dr_base
field
.
*
tree
-
vectorizer
.
h
(
stmt_vec_info
):
Add
vect_dr_base
field
.
...
...
gcc/predict.c
View file @
58016611
...
@@ -852,37 +852,9 @@ estimate_probability (struct loops *loops_info)
...
@@ -852,37 +852,9 @@ estimate_probability (struct loops *loops_info)
/* Attach the combined probability to each conditional jump. */
/* Attach the combined probability to each conditional jump. */
FOR_EACH_BB
(
bb
)
FOR_EACH_BB
(
bb
)
if
(
JUMP_P
(
BB_END
(
bb
))
combine_predictions_for_insn
(
BB_END
(
bb
),
bb
);
&&
any_condjump_p
(
BB_END
(
bb
))
&&
bb
->
succ
->
succ_next
!=
NULL
)
combine_predictions_for_insn
(
BB_END
(
bb
),
bb
);
remove_fake_exit_edges
();
remove_fake_edges
();
/* Fill in the probability values in flowgraph based on the REG_BR_PROB
notes. */
FOR_EACH_BB
(
bb
)
{
rtx
last_insn
=
BB_END
(
bb
);
if
(
!
can_predict_insn_p
(
last_insn
))
{
/* We can predict only conditional jumps at the moment.
Expect each edge to be equally probable.
?? In the future we want to make abnormal edges improbable. */
int
nedges
=
0
;
edge
e
;
for
(
e
=
bb
->
succ
;
e
;
e
=
e
->
succ_next
)
{
nedges
++
;
if
(
e
->
probability
!=
0
)
break
;
}
if
(
!
e
)
for
(
e
=
bb
->
succ
;
e
;
e
=
e
->
succ_next
)
e
->
probability
=
(
REG_BR_PROB_BASE
+
nedges
/
2
)
/
nedges
;
}
}
estimate_bb_frequencies
(
loops_info
);
estimate_bb_frequencies
(
loops_info
);
free_dominance_info
(
CDI_POST_DOMINATORS
);
free_dominance_info
(
CDI_POST_DOMINATORS
);
if
(
profile_status
==
PROFILE_ABSENT
)
if
(
profile_status
==
PROFILE_ABSENT
)
...
...
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