Commit 0e66008f authored by sebastian.buchwald1's avatar sebastian.buchwald1

Improve readability of conditions

parent 859d8c69
......@@ -6553,8 +6553,8 @@ static bool ir_is_optimizable_mux_set(const ir_node *cond, ir_relation relation,
if (!mode_is_signed(mode) || !is_Const(right))
return false;
if (!(rel_lt != ir_relation_false && is_Const_null(right)) &&
!(rel_gt != ir_relation_false && is_Const_all_one(right)))
if ((rel_lt == ir_relation_false || !is_Const_null(right)) &&
(rel_gt == ir_relation_false || !is_Const_all_one(right)))
return false;
} else if (!mode_is_signed(dest_mode)) {
return false;
......@@ -6751,8 +6751,8 @@ static ir_node *transform_Mux_set(ir_node *n, ir_relation relation)
if (!mode_is_signed(mode) || !is_Const(right))
return n;
if (!(rel_lt != ir_relation_false && is_Const_null(right)) &&
!(rel_gt != ir_relation_false && is_Const_all_one(right)))
if ((rel_lt == ir_relation_false || !is_Const_null(right)) &&
(rel_gt == ir_relation_false || !is_Const_all_one(right)))
return n;
} else if (!mode_is_signed(dest_mode)) {
return n;
......
Markdown is supported
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