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
6913329b
Commit
6913329b
authored
Dec 03, 2013
by
yb9976
Browse files
Cleanup doubleword lowering.
parent
d8a73bc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/lower/lower_dw.c
View file @
6913329b
...
...
@@ -836,7 +836,7 @@ static void lower_shr_helper(ir_node *node, ir_mode *mode,
ir_node
*
fconv
=
create_conv
(
block_false
,
left_high
,
low_unsigned
);
ir_node
*
fres_low
=
new_rd_shrs
(
dbgi
,
block_false
,
fconv
,
right
,
low_unsigned
);
int
cnsti
=
modulo_shift2
-
1
;
int
cnsti
=
modulo_shift2
-
1
;
ir_node
*
cnst3
=
new_r_Const_long
(
irg
,
low_unsigned
,
cnsti
);
ir_node
*
fres_high
;
if
(
new_rd_shrs
==
new_rd_Shrs
)
{
...
...
@@ -846,9 +846,9 @@ static void lower_shr_helper(ir_node *node, ir_mode *mode,
}
/* patch lower block */
ir_node
*
lower_in
[]
=
{
new_r_Jmp
(
block_true
),
new_r_Jmp
(
block_false
)
};
ir_node
*
phi_low_in
[]
=
{
tres_low
,
fres_low
};
ir_node
*
phi_high_in
[]
=
{
tres_high
,
fres_high
};
ir_node
*
lower_in
[]
=
{
new_r_Jmp
(
block_true
),
new_r_Jmp
(
block_false
)
};
ir_node
*
phi_low_in
[]
=
{
tres_low
,
fres_low
};
ir_node
*
phi_high_in
[]
=
{
tres_high
,
fres_high
};
set_irn_in
(
lower_block
,
ARRAY_SIZE
(
lower_in
),
lower_in
);
ir_node
*
phi_low
=
new_r_Phi
(
lower_block
,
ARRAY_SIZE
(
phi_low_in
),
phi_low_in
,
low_unsigned
);
...
...
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