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
5c1ded54
Commit
5c1ded54
authored
Jun 19, 2009
by
Matthias Braun
Browse files
another instance of wrong block in new_Proj
[r26164]
parent
2c77a96f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
5c1ded54
...
...
@@ -3567,14 +3567,16 @@ static ir_node *transform_node_Not(ir_node *n) {
HANDLE_UNOP_PHI
(
tarval_not
,
a
,
c
);
/* check for a boolean Not */
if
(
mode
==
mode_b
&&
is_Proj
(
a
)
&&
is_Cmp
(
get_Proj_pred
(
a
)))
{
/* We negate a Cmp. The Cmp has the negated result anyways! */
n
=
new_r_Proj
(
current_ir_graph
,
get_nodes_block
(
n
),
get_Proj_pred
(
a
),
mode_b
,
get_negated_pnc
(
get_Proj_proj
(
a
),
mode_b
));
DBG_OPT_ALGSIM0
(
oldn
,
n
,
FS_OPT_NOT_CMP
);
return
n
;
if
(
mode
==
mode_b
&&
is_Proj
(
a
))
{
ir_node
*
a_pred
=
get_Proj_pred
(
a
);
if
(
is_Cmp
(
a_pred
))
{
ir_node
*
cmp_block
=
get_nodes_block
(
a_pred
);
/* We negate a Cmp. The Cmp has the negated result anyways! */
n
=
new_r_Proj
(
current_ir_graph
,
cmp_block
,
get_Proj_pred
(
a
),
mode_b
,
get_negated_pnc
(
get_Proj_proj
(
a
),
mode_b
));
DBG_OPT_ALGSIM0
(
oldn
,
n
,
FS_OPT_NOT_CMP
);
return
n
;
}
}
if
(
is_Eor
(
a
))
{
ir_node
*
eor_b
=
get_Eor_right
(
a
);
...
...
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