Commit 031078da authored by Christoph Mallon's avatar Christoph Mallon
Browse files

arm: Simplify confusing condition.

parent 12aaa3fc
......@@ -802,12 +802,9 @@ static void arm_emit_block_header(ir_node *block, ir_node *prev)
/* we don't need labels for fallthrough blocks, however switch-jmps
* are no fallthroughs */
if (pred_block == prev &&
!(is_Proj(pred) && is_arm_SwitchJmp(get_Proj_pred(pred)))) {
need_label = false;
} else {
need_label = true;
}
need_label =
pred_block != prev ||
(is_Proj(pred) && is_arm_SwitchJmp(get_Proj_pred(pred)));
} else {
need_label = true;
}
......
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