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
d70bb61f
Commit
d70bb61f
authored
Sep 04, 2004
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some too-long lines and move a comment.
From-SVN: r87086
parent
eb1aef53
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
gcc/lcm.c
+10
-5
No files found.
gcc/lcm.c
View file @
d70bb61f
...
@@ -290,10 +290,11 @@ compute_laterin (struct edge_list *edge_list, sbitmap *earliest,
...
@@ -290,10 +290,11 @@ compute_laterin (struct edge_list *edge_list, sbitmap *earliest,
*
qin
++
=
bb
;
*
qin
++
=
bb
;
bb
->
aux
=
bb
;
bb
->
aux
=
bb
;
}
}
qin
=
worklist
;
/* Note that we do not use the last allocated element for our queue,
/* Note that we do not use the last allocated element for our queue,
as EXIT_BLOCK is never inserted into it. In fact the above allocation
as EXIT_BLOCK is never inserted into it. In fact the above allocation
of n_basic_blocks + 1 elements is not necessary. */
of n_basic_blocks + 1 elements is not necessary. */
qin
=
worklist
;
qend
=
&
worklist
[
n_basic_blocks
];
qend
=
&
worklist
[
n_basic_blocks
];
qlen
=
n_basic_blocks
;
qlen
=
n_basic_blocks
;
...
@@ -310,7 +311,8 @@ compute_laterin (struct edge_list *edge_list, sbitmap *earliest,
...
@@ -310,7 +311,8 @@ compute_laterin (struct edge_list *edge_list, sbitmap *earliest,
/* Compute the intersection of LATERIN for each incoming edge to B. */
/* Compute the intersection of LATERIN for each incoming edge to B. */
sbitmap_ones
(
laterin
[
bb
->
index
]);
sbitmap_ones
(
laterin
[
bb
->
index
]);
for
(
e
=
bb
->
pred
;
e
!=
NULL
;
e
=
e
->
pred_next
)
for
(
e
=
bb
->
pred
;
e
!=
NULL
;
e
=
e
->
pred_next
)
sbitmap_a_and_b
(
laterin
[
bb
->
index
],
laterin
[
bb
->
index
],
later
[(
size_t
)
e
->
aux
]);
sbitmap_a_and_b
(
laterin
[
bb
->
index
],
laterin
[
bb
->
index
],
later
[(
size_t
)
e
->
aux
]);
/* Calculate LATER for all outgoing edges. */
/* Calculate LATER for all outgoing edges. */
for
(
e
=
bb
->
succ
;
e
!=
NULL
;
e
=
e
->
succ_next
)
for
(
e
=
bb
->
succ
;
e
!=
NULL
;
e
=
e
->
succ_next
)
...
@@ -354,7 +356,8 @@ compute_insert_delete (struct edge_list *edge_list, sbitmap *antloc,
...
@@ -354,7 +356,8 @@ compute_insert_delete (struct edge_list *edge_list, sbitmap *antloc,
basic_block
bb
;
basic_block
bb
;
FOR_EACH_BB
(
bb
)
FOR_EACH_BB
(
bb
)
sbitmap_difference
(
delete
[
bb
->
index
],
antloc
[
bb
->
index
],
laterin
[
bb
->
index
]);
sbitmap_difference
(
delete
[
bb
->
index
],
antloc
[
bb
->
index
],
laterin
[
bb
->
index
]);
for
(
x
=
0
;
x
<
NUM_EDGES
(
edge_list
);
x
++
)
for
(
x
=
0
;
x
<
NUM_EDGES
(
edge_list
);
x
++
)
{
{
...
@@ -526,7 +529,8 @@ compute_available (sbitmap *avloc, sbitmap *kill, sbitmap *avout,
...
@@ -526,7 +529,8 @@ compute_available (sbitmap *avloc, sbitmap *kill, sbitmap *avout,
sbitmap_intersection_of_preds
(
avin
[
bb
->
index
],
avout
,
bb
->
index
);
sbitmap_intersection_of_preds
(
avin
[
bb
->
index
],
avout
,
bb
->
index
);
}
}
if
(
sbitmap_union_of_diff_cg
(
avout
[
bb
->
index
],
avloc
[
bb
->
index
],
avin
[
bb
->
index
],
kill
[
bb
->
index
]))
if
(
sbitmap_union_of_diff_cg
(
avout
[
bb
->
index
],
avloc
[
bb
->
index
],
avin
[
bb
->
index
],
kill
[
bb
->
index
]))
/* If the out state of this block changed, then we need
/* If the out state of this block changed, then we need
to add the successors of this block to the worklist
to add the successors of this block to the worklist
if they are not already on the worklist. */
if they are not already on the worklist. */
...
@@ -683,7 +687,8 @@ compute_rev_insert_delete (struct edge_list *edge_list, sbitmap *st_avloc,
...
@@ -683,7 +687,8 @@ compute_rev_insert_delete (struct edge_list *edge_list, sbitmap *st_avloc,
basic_block
bb
;
basic_block
bb
;
FOR_EACH_BB
(
bb
)
FOR_EACH_BB
(
bb
)
sbitmap_difference
(
delete
[
bb
->
index
],
st_avloc
[
bb
->
index
],
nearerout
[
bb
->
index
]);
sbitmap_difference
(
delete
[
bb
->
index
],
st_avloc
[
bb
->
index
],
nearerout
[
bb
->
index
]);
for
(
x
=
0
;
x
<
NUM_EDGES
(
edge_list
);
x
++
)
for
(
x
=
0
;
x
<
NUM_EDGES
(
edge_list
);
x
++
)
{
{
...
...
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