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
2fcea4f2
Commit
2fcea4f2
authored
Jan 14, 2009
by
Michael Beck
Browse files
- recode r25185 "the Firm way"
[r25188]
parent
ac007947
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
2fcea4f2
...
...
@@ -1178,10 +1178,10 @@ static ir_node *equivalent_node_And(ir_node *n) {
if
(
tv
!=
get_tarval_bad
())
{
ir_mode
*
mode
=
get_irn_mode
(
n
);
if
(
!
mode_is_signed
(
mode
)
&&
is_Conv
(
a
))
{
ir_node
*
convop
=
get_Conv_op
(
a
);
ir_node
*
convop
=
get_Conv_op
(
a
);
ir_mode
*
convopmode
=
get_irn_mode
(
convop
);
if
(
!
mode_is_signed
(
convopmode
))
{
if
(
new_
tarval_
from_long
(
get_tarval_long
(
tv
),
convopmode
)
==
get_mode_all_one
(
convopmode
))
{
if
(
tarval_
is_all_one
(
tarval_convert_to
(
tv
,
convopmode
))
)
{
/* Conv(X) & all_one(mode(X)) = Conv(X) */
n
=
a
;
DBG_OPT_ALGSIM1
(
oldn
,
a
,
b
,
n
,
FS_OPT_AND
);
...
...
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