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
5fa209c4
Commit
5fa209c4
authored
Sep 19, 2008
by
Michael Beck
Browse files
- BugFix: transform_polymorph_Load() returns the original load, not NULL
- removed useless code [r22109]
parent
2f54c59a
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/ldstopt.c
View file @
5fa209c4
...
...
@@ -410,7 +410,6 @@ ptr_arith:
for
(
ent
=
field
;;)
{
unsigned
size
;
tarval
*
sz
,
*
tv_index
,
*
tlower
,
*
tupper
;
long
index
;
ir_node
*
bound
;
tp
=
get_entity_type
(
ent
);
...
...
@@ -441,7 +440,6 @@ ptr_arith:
return
NULL
;
/* ok, bounds check finished */
index
=
get_tarval_long
(
tv_index
);
++
idx
;
}
if
(
!
tarval_is_null
(
tv
))
{
...
...
@@ -1038,7 +1036,8 @@ static unsigned optimize_load(ir_node *load)
/* Load from a constant polymorphic field, where we can resolve
polymorphism. */
value
=
transform_polymorph_Load
(
load
);
if
(
value
==
NULL
)
{
if
(
value
==
load
)
{
value
=
NULL
;
/* check if we can determine the entity that will be loaded */
ent
=
find_constant_entity
(
ptr
);
if
(
ent
!=
NULL
)
{
...
...
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