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
df33b59f
Commit
df33b59f
authored
Sep 08, 2010
by
Michael Beck
Browse files
C99 feature removed, fixed typo.
[r27979]
parent
4fa8da0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
df33b59f
...
...
@@ -5772,18 +5772,18 @@ static ir_node *transform_node_Mux(ir_node *n)
}
/* first normalization step: try to move a constant to the false side,
* 0 prefered on false side too */
* 0 prefer
r
ed on false side too */
if
(
is_Proj
(
sel
))
{
ir_node
*
cmp
=
get_Proj_pred
(
sel
);
if
(
is_Cmp
(
cmp
)
&&
is_Const
(
t
)
&&
(
!
is_Const
(
f
)
||
(
is_Const_null
(
t
)
&&
!
is_Const_null
(
f
))))
{
(
!
is_Const
(
f
)
||
(
is_Const_null
(
t
)
&&
!
is_Const_null
(
f
))))
{
pn_Cmp
pnc
=
get_Proj_proj
(
sel
);
ir_node
*
tmp
=
t
;
t
=
f
;
f
=
tmp
;
/* Mux(x, a, b) => Mux(not(x), b, a) */
pn_Cmp
pnc
=
get_Proj_proj
(
sel
);
sel
=
new_r_Proj
(
cmp
,
mode_b
,
get_negated_pnc
(
pnc
,
get_irn_mode
(
get_Cmp_left
(
cmp
))));
n
=
new_rd_Mux
(
get_irn_dbg_info
(
n
),
get_nodes_block
(
n
),
sel
,
f
,
t
,
mode
);
...
...
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