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
79718dc9
Commit
79718dc9
authored
Nov 12, 2014
by
Christoph Mallon
Browse files
be: Use edges_reroute_except().
parent
6b9a779d
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/arm/arm_optimize.c
View file @
79718dc9
...
...
@@ -70,15 +70,7 @@ static void peephole_be_IncSP(ir_node *node)
}
/* reattach IncSP users */
ir_node
*
last
=
node
;
node
=
sched_next
(
first
);
foreach_out_edge_safe
(
first
,
edge
)
{
ir_node
*
user
=
get_edge_src_irn
(
edge
);
int
pos
=
get_edge_src_pos
(
edge
);
if
(
user
==
node
)
continue
;
set_irn_n
(
user
,
pos
,
last
);
}
edges_reroute_except
(
first
,
node
,
sched_next
(
first
));
}
/**
...
...
ir/be/ia32/ia32_optimize.c
View file @
79718dc9
...
...
@@ -444,16 +444,7 @@ static void peephole_IncSP_Store_to_push(ir_node *irn)
inc_ofs
-=
4
;
}
foreach_out_edge_safe
(
irn
,
edge
)
{
ir_node
*
const
src
=
get_edge_src_irn
(
edge
);
if
(
src
==
first_push
)
continue
;
const
int
pos
=
get_edge_src_pos
(
edge
);
set_irn_n
(
src
,
pos
,
curr_sp
);
}
edges_reroute_except
(
irn
,
curr_sp
,
first_push
);
be_set_IncSP_offset
(
irn
,
inc_ofs
);
}
...
...
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