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
4f8e8046
Commit
4f8e8046
authored
Apr 20, 2011
by
yb9976
Browse files
We do not need to place Phis in dead blocks.
This fixes opt/jumpthreading3.c.
parent
5d9cd796
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/jumpthreading.c
View file @
4f8e8046
...
...
@@ -84,7 +84,7 @@ static ir_node *search_def_and_create_phis(ir_node *block, ir_mode *mode,
ir_node
*
dummy
;
/* This is needed because we create bads sometimes */
if
(
is_Bad
(
block
))
{
if
(
is_Bad
(
block
)
||
is_Block_dead
(
block
)
)
{
ir_graph
*
irg
=
get_irn_irg
(
block
);
return
new_r_Bad
(
irg
);
}
...
...
Write
Preview
Supports
Markdown
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