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
cef83dae
Commit
cef83dae
authored
Mar 17, 2009
by
Michael Beck
Browse files
- BugFix: the end block might be unreachable, check this first
[r25700]
parent
e0a2eca7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/opt_ldst.c
View file @
cef83dae
...
...
@@ -1858,11 +1858,19 @@ static int insert_Load(block_t *bl) {
unsigned
pos
=
0
;
unsigned
end
=
env
.
rbs_size
-
1
;
int
res
=
0
;
ir_node
*
pred
=
get_Block_cfgpred_block
(
bl
->
block
,
0
)
;
block_t
*
pred_bl
=
get_block_entry
(
pred
)
;
ir_node
*
pred
;
block_t
*
pred_bl
;
DB
((
dbg
,
LEVEL_3
,
"processing %+F
\n
"
,
block
));
if
(
n
==
0
)
{
/* might still happen for an unreachable block (end for instance) */
return
res
;
}
pred
=
get_Block_cfgpred_block
(
bl
->
block
,
0
);
pred_bl
=
get_block_entry
(
pred
);
rbitset_cpy
(
env
.
curr_set
,
pred_bl
->
avail_out
,
env
.
rbs_size
);
if
(
n
>
1
)
{
...
...
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