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
43a7a281
Commit
43a7a281
authored
May 13, 2011
by
Andreas Zwinkau
Browse files
Delay exchange until all nodes are created
add_block_cf_input breaks, if the block has two Bad inputs
parent
b5226ea8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/lower/lower_dw.c
View file @
43a7a281
...
...
@@ -1156,6 +1156,7 @@ static void lower_Cond(ir_node *node, ir_mode *mode, lower_env_t *env)
}
else
{
/* a rel b <==> a_h REL b_h || (a_h == b_h && a_l rel b_l) */
ir_node
*
dstT
,
*
dstF
,
*
newbl_eq
,
*
newbl_l
;
ir_node
*
projEqF
;
pmap_entry
*
entry
;
entry
=
pmap_find
(
env
->
proj_2_block
,
projT
);
...
...
@@ -1173,8 +1174,6 @@ static void lower_Cond(ir_node *node, ir_mode *mode, lower_env_t *env)
projHT
=
new_r_Proj
(
irn
,
mode_X
,
pn_Cond_true
);
mark_irn_visited
(
projHT
);
exchange
(
projT
,
projHT
);
projT
=
projHT
;
projHF
=
new_r_Proj
(
irn
,
mode_X
,
pn_Cond_false
);
mark_irn_visited
(
projHF
);
...
...
@@ -1185,10 +1184,8 @@ static void lower_Cond(ir_node *node, ir_mode *mode, lower_env_t *env)
ir_relation_equal
);
irn
=
new_rd_Cond
(
dbg
,
newbl_eq
,
irn
);
proj
=
new_r_Proj
(
irn
,
mode_X
,
pn_Cond_false
);
mark_irn_visited
(
proj
);
exchange
(
projF
,
proj
);
projF
=
proj
;
projEqF
=
new_r_Proj
(
irn
,
mode_X
,
pn_Cond_false
);
mark_irn_visited
(
projEqF
);
proj
=
new_r_Proj
(
irn
,
mode_X
,
pn_Cond_true
);
mark_irn_visited
(
proj
);
...
...
@@ -1208,6 +1205,9 @@ static void lower_Cond(ir_node *node, ir_mode *mode, lower_env_t *env)
proj
=
new_r_Proj
(
irn
,
mode_X
,
pn_Cond_false
);
mark_irn_visited
(
proj
);
add_block_cf_input
(
dstF
,
projF
,
proj
);
exchange
(
projT
,
projHT
);
exchange
(
projF
,
projEqF
);
}
/* we have changed the control flow */
...
...
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