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
d3b16d20
Commit
d3b16d20
authored
Feb 28, 2011
by
Matthias Braun
Browse files
fix confirms being broken with Cmp changes
parent
7f6c5599
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ana/irconsconfirm.c
View file @
d3b16d20
...
...
@@ -428,29 +428,23 @@ static void insert_Confirm_in_block(ir_node *block, void *data)
mode
=
get_irn_mode
(
selector
);
if
(
mode
==
mode_b
)
{
ir_node
*
cmp
;
ir_relation
rel
;
handle_modeb
(
block
,
selector
,
(
pn_Cond
)
get_Proj_proj
(
proj
),
env
);
/* this should be an IF, check this */
if
(
!
is_Proj
(
selector
))
if
(
!
is_Cmp
(
selector
))
return
;
cmp
=
get_Proj_pred
(
selector
);
if
(
!
is_Cmp
(
cmp
))
return
;
rel
=
get_Cmp_relation
(
cmp
);
rel
=
get_Cmp_relation
(
selector
);
if
(
get_Proj_proj
(
proj
)
!=
pn_Cond_true
)
{
/* it's the false branch */
mode
=
get_irn_mode
(
get_Cmp_left
(
cmp
));
mode
=
get_irn_mode
(
get_Cmp_left
(
selector
));
rel
=
get_negated_relation
(
rel
);
}
DB
((
dbg
,
LEVEL_2
,
"At %+F using %+F Confirm %=
\n
"
,
block
,
cmp
,
rel
));
DB
((
dbg
,
LEVEL_2
,
"At %+F using %+F Confirm %=
\n
"
,
block
,
selector
,
rel
));
handle_if
(
block
,
cmp
,
rel
,
env
);
handle_if
(
block
,
selector
,
rel
,
env
);
}
else
if
(
mode_is_int
(
mode
))
{
long
proj_nr
=
get_Proj_proj
(
proj
);
...
...
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