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
f0db3da5
Commit
f0db3da5
authored
May 31, 2011
by
Matthias Braun
Browse files
always transform integer abs, even in GRAPH_STATE_KEEP_MUX
parent
fa1795e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
f0db3da5
...
...
@@ -5503,9 +5503,6 @@ static ir_node *transform_node_Mux(ir_node *n)
ir_node
*
f
=
get_Mux_false
(
n
);
ir_graph
*
irg
=
get_irn_irg
(
n
);
if
(
is_irg_state
(
irg
,
IR_GRAPH_STATE_KEEP_MUX
))
return
n
;
/* implement integer abs: abs(x) = x^(x >>s 31) - (x >>s 31) */
if
(
get_mode_arithmetic
(
mode
)
==
irma_twos_complement
)
{
int
abs
=
ir_mux_is_abs
(
sel
,
t
,
f
);
...
...
@@ -5527,6 +5524,9 @@ static ir_node *transform_node_Mux(ir_node *n)
}
}
if
(
is_irg_state
(
irg
,
IR_GRAPH_STATE_KEEP_MUX
))
return
n
;
if
(
is_Mux
(
t
))
{
ir_node
*
block
=
get_nodes_block
(
n
);
ir_node
*
c0
=
sel
;
...
...
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