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
f7dec6de
Commit
f7dec6de
authored
Feb 28, 2014
by
Christoph Mallon
Browse files
dca: Do not check for Const on the left hand side of And/Or.
parent
07b52f0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ana/dca.c
View file @
f7dec6de
...
...
@@ -150,10 +150,7 @@ static void dca_transfer(ir_node *irn, pdeq *q)
ir_node
*
left
=
get_And_left
(
irn
);
ir_node
*
right
=
get_And_right
(
irn
);
if
(
is_Const
(
left
))
{
care_for
(
right
,
tarval_and
(
care
,
get_Const_tarval
(
left
)),
q
);
care_for
(
left
,
care
,
q
);
}
else
if
(
is_Const
(
right
))
{
if
(
is_Const
(
right
))
{
care_for
(
left
,
tarval_and
(
care
,
get_Const_tarval
(
right
)),
q
);
care_for
(
right
,
care
,
q
);
}
else
{
...
...
@@ -180,10 +177,7 @@ static void dca_transfer(ir_node *irn, pdeq *q)
ir_node
*
left
=
get_binop_left
(
irn
);
ir_node
*
right
=
get_binop_right
(
irn
);
if
(
is_Const
(
left
))
{
care_for
(
right
,
tarval_andnot
(
care
,
get_Const_tarval
(
left
)),
q
);
care_for
(
left
,
care
,
q
);
}
else
if
(
is_Const
(
right
))
{
if
(
is_Const
(
right
))
{
care_for
(
left
,
tarval_andnot
(
care
,
get_Const_tarval
(
right
)),
q
);
care_for
(
right
,
care
,
q
);
}
else
{
...
...
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