Commit 90f8824d authored by yb9976's avatar yb9976
Browse files

Set appropriate relation.

parent c3c7f0c5
...@@ -4653,9 +4653,10 @@ static ir_node *transform_node_Cmp(ir_node *n) ...@@ -4653,9 +4653,10 @@ static ir_node *transform_node_Cmp(ir_node *n)
} }
if (x) { if (x) {
cmp_x_eq_0:; cmp_x_eq_0:;
left = x; left = x;
right = new_r_Const_null(irg, mode); right = new_r_Const_null(irg, mode);
changed = true; relation = is_relation_equal ? ir_relation_equal : ir_relation_less_greater;
changed = true;
DBG_OPT_ALGSIM0(n, n, FS_OPT_CMP_OP_OP); DBG_OPT_ALGSIM0(n, n, FS_OPT_CMP_OP_OP);
} }
} }
......
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