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
cc10816d
Commit
cc10816d
authored
Aug 15, 2001
by
Jan Hubicka
Committed by
Jan Hubicka
Aug 15, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* predict.def: Update hitrates.
From-SVN: r44920
parent
fd7e958f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
29 deletions
+14
-29
gcc/ChangeLog
+4
-0
gcc/predict.c
+10
-29
No files found.
gcc/ChangeLog
View file @
cc10816d
Wed
Aug
15
12
:
41
:
32
CEST
2001
Jan
Hubicka
<
jh
@suse
.
cz
>
*
predict
.
def
:
Update
hitrates
.
2001
-
08
-
15
Richard
Henderson
<
rth
@redhat
.
com
>
*
except
.
c
(
TYPE_HASH
)
:
Cast
to
size_t
,
not
HOST_WIDE_INT
.
...
...
gcc/predict.c
View file @
cc10816d
...
...
@@ -608,10 +608,6 @@ typedef struct block_info_def
/* True if block already converted. */
int
visited
:
1
;
/* Number of block proceeded before adding basic block to the queue. Used
to recognize irregular regions. */
int
nvisited
;
}
*
block_info
;
/* Similar information for edges. */
...
...
@@ -638,7 +634,6 @@ propagate_freq (head)
basic_block
last
=
bb
;
edge
e
;
basic_block
nextbb
;
int
nvisited
=
0
;
BLOCK_INFO
(
head
)
->
frequency
=
1
;
for
(;
bb
;
bb
=
nextbb
)
...
...
@@ -652,38 +647,25 @@ propagate_freq (head)
if
(
bb
!=
head
)
{
for
(
e
=
bb
->
pred
;
e
;
e
=
e
->
pred_next
)
if
(
!
BLOCK_INFO
(
e
->
src
)
->
visited
&&
!
EDGE_INFO
(
e
)
->
back_edge
)
if
(
!
BLOCK_INFO
(
e
->
src
)
->
visited
&&
!
(
e
->
flags
&
EDGE_DFS_BACK
)
)
break
;
/* We haven't proceeded all predecessors of edge e yet.
These may be waiting in the queue or we may hit an
irreducible region.
To avoid infinite looping on irrecudible regions, count
the number of blocks proceeded at the time the basic
block has been queued. In the case the number doesn't
change, we've hit an irreducible region and we can forget
the backward edge. This can increase the time complexity
by the number of irreducible blocks, but in the same way
the standard the loop does, so it should not result in a
noticeable slowdown.
Alternatively we may distinguish backward and cross edges
in the DFS tree by the preprocessing pass and ignore the
existence of non-loop backward edges. */
if
(
e
&&
BLOCK_INFO
(
bb
)
->
nvisited
!=
nvisited
)
/* We haven't proceeded all predecessors of edge e yet. */
if
(
e
)
{
if
(
!
nextbb
)
nextbb
=
e
->
dest
;
else
BLOCK_INFO
(
last
)
->
next
=
e
->
dest
;
BLOCK_INFO
(
last
)
->
nvisited
=
nvisited
;
last
=
e
->
dest
;
continue
;
}
else
if
(
e
&&
rtl_dump_file
)
fprintf
(
rtl_dump_file
,
"Irreducible region hit, ignoring edge to bb %i
\n
"
,
bb
->
index
);
if
(
rtl_dump_file
)
for
(
e
=
bb
->
pred
;
e
;
e
=
e
->
pred_next
)
if
(
!
BLOCK_INFO
(
e
->
src
)
->
visited
&&
!
EDGE_INFO
(
e
)
->
back_edge
)
fprintf
(
rtl_dump_file
,
"Irreducible region hit, ignoring edge to %i->%i
\n
"
,
e
->
src
->
index
,
bb
->
index
);
for
(
e
=
bb
->
pred
;
e
;
e
=
e
->
pred_next
)
if
(
EDGE_INFO
(
e
)
->
back_edge
)
...
...
@@ -718,10 +700,8 @@ propagate_freq (head)
nextbb
=
e
->
dest
;
else
BLOCK_INFO
(
last
)
->
next
=
e
->
dest
;
BLOCK_INFO
(
last
)
->
nvisited
=
nvisited
;
last
=
e
->
dest
;
}
nvisited
++
;
}
}
...
...
@@ -801,6 +781,7 @@ estimate_bb_frequencies (loops)
int
i
;
double
freq_max
=
0
;
mark_dfs_back_edges
();
if
(
flag_branch_probabilities
)
{
counts_to_freqs
();
...
...
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