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
6b0ac742
Commit
6b0ac742
authored
Apr 10, 2008
by
Michael Beck
Browse files
- BugFix: Do not optimize dead blocks: They might even be immature when SSA construction was
restartet ... [r19222]
parent
20992544
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
6b0ac742
...
...
@@ -722,10 +722,16 @@ static ir_op_ops *firm_set_default_computed_value(ir_opcode code, ir_op_ops *ops
static
ir_node
*
equivalent_node_Block
(
ir_node
*
n
)
{
ir_node
*
oldn
=
n
;
int
n_preds
=
get_Block_n_cfg
preds
(
n
)
;
int
n_
preds
;
/* The Block constructor does not call optimize, but mature_immBlock
calls the optimization. */
/* don't optimize dead blocks */
if
(
is_Block_dead
(
n
))
return
n
;
n_preds
=
get_Block_n_cfgpreds
(
n
);
/* The Block constructor does not call optimize, but mature_immBlock()
calls the optimization. */
assert
(
get_Block_matured
(
n
));
/* Straightening: a single entry Block following a single exit Block
...
...
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