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
7510740d
Commit
7510740d
authored
Nov 26, 2004
by
Kazu Hirata
Committed by
Kazu Hirata
Nov 26, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-cfg.c (tree_split_edge): Speed up by using find_edge.
From-SVN: r91341
parent
276318a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
gcc/ChangeLog
+2
-0
gcc/tree-cfg.c
+3
-7
No files found.
gcc/ChangeLog
View file @
7510740d
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
*
cse
.
c
,
tree
-
ssa
-
operands
.
c
:
Fix
comment
typos
.
*
cse
.
c
,
tree
-
ssa
-
operands
.
c
:
Fix
comment
typos
.
*
tree
-
cfg
.
c
(
tree_split_edge
):
Speed
up
by
using
find_edge
.
2004
-
11
-
26
James
A
.
Morrison
<
phython
@
gcc
.
gnu
.
org
>
2004
-
11
-
26
James
A
.
Morrison
<
phython
@
gcc
.
gnu
.
org
>
PR
target
/
18510
PR
target
/
18510
...
...
gcc/tree-cfg.c
View file @
7510740d
...
@@ -3144,7 +3144,6 @@ tree_split_edge (edge edge_in)
...
@@ -3144,7 +3144,6 @@ tree_split_edge (edge edge_in)
{
{
basic_block
new_bb
,
after_bb
,
dest
,
src
;
basic_block
new_bb
,
after_bb
,
dest
,
src
;
edge
new_edge
,
e
;
edge
new_edge
,
e
;
edge_iterator
ei
;
/* Abnormal edges cannot be split. */
/* Abnormal edges cannot be split. */
gcc_assert
(
!
(
edge_in
->
flags
&
EDGE_ABNORMAL
));
gcc_assert
(
!
(
edge_in
->
flags
&
EDGE_ABNORMAL
));
...
@@ -3155,13 +3154,10 @@ tree_split_edge (edge edge_in)
...
@@ -3155,13 +3154,10 @@ tree_split_edge (edge edge_in)
/* Place the new block in the block list. Try to keep the new block
/* Place the new block in the block list. Try to keep the new block
near its "logical" location. This is of most help to humans looking
near its "logical" location. This is of most help to humans looking
at debugging dumps. */
at debugging dumps. */
FOR_EACH_EDGE
(
e
,
ei
,
dest
->
preds
)
if
(
dest
->
prev_bb
&&
find_edge
(
dest
->
prev_bb
,
dest
))
if
(
e
->
src
->
next_bb
==
dest
)
break
;
if
(
!
e
)
after_bb
=
dest
->
prev_bb
;
else
after_bb
=
edge_in
->
src
;
after_bb
=
edge_in
->
src
;
else
after_bb
=
dest
->
prev_bb
;
new_bb
=
create_empty_bb
(
after_bb
);
new_bb
=
create_empty_bb
(
after_bb
);
new_bb
->
frequency
=
EDGE_FREQUENCY
(
edge_in
);
new_bb
->
frequency
=
EDGE_FREQUENCY
(
edge_in
);
...
...
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