Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
b1ac1ed9
Commit
b1ac1ed9
authored
Oct 26, 2007
by
Matthias Braun
Browse files
small optimisation and cleanup
[r16369]
parent
27ad0385
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beblocksched.c
View file @
b1ac1ed9
...
...
@@ -201,18 +201,19 @@ static void coalesce_blocks(blocksched_env_t *env)
for
(
i
=
0
;
i
<
edge_count
;
++
i
)
{
const
edge_t
*
edge
=
&
env
->
edges
[
i
];
ir_node
*
block
=
edge
->
block
;
int
pos
=
edge
->
pos
;
ir_node
*
pred_block
;
blocksched_entry_t
*
entry
,
*
pred_entry
;
/* the block might have been removed already... */
if
(
is_Bad
(
get_Block_cfgpred
(
block
,
0
)))
continue
;
/* only check edge with highest frequency */
if
(
!
edge
->
highest_execfreq
)
continue
;
pred_block
=
get_Block_cfgpred_block
(
block
,
edge
->
pos
);
/* the block might have been removed already... */
if
(
is_Bad
(
get_Block_cfgpred
(
block
,
0
)))
continue
;
pred_block
=
get_Block_cfgpred_block
(
block
,
pos
);
entry
=
get_irn_link
(
block
);
pred_entry
=
get_irn_link
(
pred_block
);
...
...
@@ -242,8 +243,8 @@ static void coalesce_blocks(blocksched_env_t *env)
if
(
is_Bad
(
get_Block_cfgpred
(
block
,
0
)))
continue
;
/* we can't fallthroughs in backedges */
if
(
is_backedge
(
block
,
edge
->
pos
))
/* we can't
do
fallthroughs in backedges */
if
(
is_backedge
(
block
,
pos
))
continue
;
pred_block
=
get_Block_cfgpred_block
(
block
,
pos
);
...
...
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