Commit 51a94c49 authored by Matthias Braun's avatar Matthias Braun
Browse files

bepeephole: make assert about dominance less strict

parent 0f7d29a9
......@@ -149,8 +149,8 @@ static void be_peephole_before_exchange(const ir_node *old_node,
DB((dbg, LEVEL_1, "About to exchange and kill %+F with %+F\n", old_node, new_node));
assert(value_dominates(new_node, old_node));
if (current_node == old_node) {
old_is_current = true;
......@@ -159,6 +159,10 @@ static void be_peephole_before_exchange(const ir_node *old_node,
* must be processed next. */
current_node = sched_next(current_node);
assert (!is_Bad(current_node));
/* we can't handle liveness updates correctly when exchange current node
* with something behind it */
assert(value_dominates(skip_Proj(new_node), skip_Proj_const(old_node)));
if (!mode_is_data(get_irn_mode(old_node)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment