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
0f4456da
Commit
0f4456da
authored
Jun 28, 2015
by
Christoph Mallon
Browse files
be: Replace edges_reroute() + kill_node() by exchange().
parent
e8048e4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_finish.c
View file @
0f4456da
...
...
@@ -132,10 +132,8 @@ static void transform_sub_to_neg_add(ir_node *node,
arch_set_irn_register
(
add_res
,
out_reg
);
/* exchange the add and the sub */
edges_reroute
(
node
,
add
);
sched_replace
(
node
,
add
);
kill_node
(
node
);
exchange
(
node
,
add
);
}
static
ir_node
*
amd64_turn_back_am
(
ir_node
*
node
)
...
...
ir/be/ia32/ia32_finish.c
View file @
0f4456da
...
...
@@ -169,16 +169,12 @@ carry:;
}
}
/* exchange the add and the sub */
edges_reroute
(
irn
,
res
);
sched_replace
(
irn
,
res
);
set_irn_mode
(
res
,
get_irn_mode
(
irn
));
SET_IA32_ORIG_NODE
(
res
,
irn
);
/* remove the old sub */
kill_node
(
irn
);
/* exchange the add and the sub */
sched_replace
(
irn
,
res
);
exchange
(
irn
,
res
);
}
static
inline
int
need_constraint_copy
(
ir_node
*
irn
)
...
...
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