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
e40b97bd
Commit
e40b97bd
authored
Sep 18, 2008
by
Michael Beck
Browse files
- removed redundant checks
[r22094]
parent
c4c295ea
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/opt/ldstopt.c
View file @
e40b97bd
...
...
@@ -477,18 +477,14 @@ ptr_arith:
tv_index
=
tarval_div
(
tv
,
sz
);
tv
=
tarval_mod
(
tv
,
sz
);
if
(
tv_index
==
tarval_bad
||
tv
==
tarval_bad
)
return
NULL
;
/* worked above, should work again */
assert
(
tv_index
!=
tarval_bad
&&
tv
!=
tarval_bad
)
;
/* bounds already checked above */
index
=
get_tarval_long
(
tv_index
);
set_compound_graph_path_array_index
(
res
,
pos
,
index
);
++
pos
;
}
if
(
!
tarval_is_null
(
tv
))
{
/* hmm, wrong access */
return
NULL
;
}
}
else
if
(
is_Sub
(
ptr
))
{
ir_node
*
l
=
get_Sub_left
(
ptr
);
ir_node
*
r
=
get_Sub_right
(
ptr
);
...
...
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