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
adf42c90
Commit
adf42c90
authored
May 22, 2005
by
Götz Lindenmaier
Browse files
bugfix and additional case for optimization.
May we skip casts when checking for exception after alloc? I think so. [r5868]
parent
df7e9676
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/ldstopt.c
View file @
adf42c90
...
...
@@ -381,7 +381,8 @@ static int optimize_load(ir_node *load)
}
}
}
else
if
(
get_irn_op
(
ptr
)
==
op_Alloc
)
{
else
if
((
get_irn_op
(
skip_Proj
(
ptr
))
==
op_Alloc
)
||
((
get_irn_op
(
ptr
)
==
op_Cast
)
&&
(
get_irn_op
(
skip_Proj
(
get_Cast_op
(
ptr
)))
==
op_Alloc
)))
{
/* simple case: a direct load after an Alloc. Firm Alloc throw
* an exception in case of out-of-memory. So, there is no way for an
* exception in this load.
...
...
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