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
e44fea2c
Commit
e44fea2c
authored
Sep 17, 2007
by
Christoph Mallon
Browse files
Use is_Const_all_one() instead of tarval_is_all_one(get_Const_tarval()).
[r15845]
parent
b9e13157
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
e44fea2c
...
...
@@ -1124,12 +1124,12 @@ static ir_node *equivalent_node_And(ir_node *n) {
DBG_OPT_ALGSIM0
(
oldn
,
n
,
FS_OPT_AND
);
return
n
;
}
if
(
tarval_is_all_one
(
value_of
(
a
)
))
{
if
(
is_Const
(
a
)
&&
is_Const_all_one
(
a
))
{
n
=
b
;
DBG_OPT_ALGSIM1
(
oldn
,
a
,
b
,
n
,
FS_OPT_AND
);
return
n
;
}
if
(
tarval_is_all_one
(
value_of
(
b
)
))
{
if
(
is_Const
(
b
)
&&
is_Const_all_one
(
b
))
{
n
=
a
;
DBG_OPT_ALGSIM1
(
oldn
,
a
,
b
,
n
,
FS_OPT_AND
);
return
n
;
...
...
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