summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bepeephole.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2018-03-19 18:15:44 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2018-03-20 08:33:54 +0100
commite8b75f418c9479f978b1bb2ed3e7466ece576ee2 (patch)
tree2f13893ce8bf01f59d519c793093d86ea8d018c8 /ir/be/bepeephole.c
parentdeb048447cbffe8e907edebebd7a88b1bbf5866c (diff)
be: Allow moving memory operations in be_can_move_up().
It is fine to do so, as long as they are not executed in different situations than before. The only critical place now checks this by itself and even does so for memory operations with NoMem as operand.
Diffstat (limited to 'ir/be/bepeephole.c')
-rw-r--r--ir/be/bepeephole.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/ir/be/bepeephole.c b/ir/be/bepeephole.c
index 4559c30..d291d3e 100644
--- a/ir/be/bepeephole.c
+++ b/ir/be/bepeephole.c
@@ -290,13 +290,6 @@ bool be_can_move_up(ir_heights_t *heights, const ir_node *node,
assert(get_Block_cfgpred_block(node_block, 0) == after_block);
ir_node *first = sched_first(node_block);
- /* do not move nodes changing memory */
- if (is_memop(node)) {
- ir_node *meminput = get_memop_mem(node);
- if (!is_NoMem(meminput))
- return false;
- }
-
/* make sure we can move to the beginning of the succ block */
if (node != first && !be_can_move_up(heights, node, sched_prev(first)))
return false;