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
cfff7c32
Commit
cfff7c32
authored
Aug 11, 2014
by
yb9976
Browse files
Fixed behavior if the nodes are in the same block.
parent
f840dcaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beflags.c
View file @
cfff7c32
...
@@ -110,8 +110,7 @@ static void move_other_uses(ir_node *node, ir_node *copy)
...
@@ -110,8 +110,7 @@ static void move_other_uses(ir_node *node, ir_node *copy)
{
{
/* copy_prev already has its visited flag set, but is still
/* copy_prev already has its visited flag set, but is still
* scheduled before copy. */
* scheduled before copy. */
ir_node
*
copy_prev
=
get_irn_sched_info
(
copy
)
->
prev
;
ir_node
*
copy_prev
=
get_irn_sched_info
(
copy
)
->
prev
;
ir_node
*
copy_block
=
get_nodes_block
(
copy
);
foreach_irn_out
(
node
,
i
,
proj
)
{
foreach_irn_out
(
node
,
i
,
proj
)
{
if
(
get_irn_mode
(
proj
)
==
flag_class
->
mode
)
{
if
(
get_irn_mode
(
proj
)
==
flag_class
->
mode
)
{
...
@@ -122,7 +121,7 @@ static void move_other_uses(ir_node *node, ir_node *copy)
...
@@ -122,7 +121,7 @@ static void move_other_uses(ir_node *node, ir_node *copy)
foreach_out_edge_safe
(
proj
,
edge
)
{
foreach_out_edge_safe
(
proj
,
edge
)
{
ir_node
*
succ
=
get_edge_src_irn
(
edge
);
ir_node
*
succ
=
get_edge_src_irn
(
edge
);
if
(
irn_visited
(
succ
)
&&
succ
!=
copy_prev
&&
if
(
irn_visited
(
succ
)
&&
succ
!=
copy_prev
&&
block
_dominates
(
copy
_block
,
get_nodes_block
(
succ
))
)
{
value_strictly
_dominates
(
copy
,
succ
))
{
if
(
new_proj
==
NULL
)
{
if
(
new_proj
==
NULL
)
{
ir_mode
*
proj_mode
=
get_irn_mode
(
proj
);
ir_mode
*
proj_mode
=
get_irn_mode
(
proj
);
int
pn
=
get_Proj_proj
(
proj
);
int
pn
=
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