Commit 115cfa7b authored by Matthias Braun's avatar Matthias Braun
Browse files

fix ir_is_equality_cmp_0 returning true for signed_var > 0

parent 453d4120
......@@ -3121,11 +3121,11 @@ int ir_is_equality_cmp_0(const ir_node *node)
return false;
if (relation == ir_relation_equal)
return true;
if (mode_is_signed(mode) && relation == ir_relation_less_greater)
return true;
if (relation == ir_relation_greater)
return true;
return false;
if (mode_is_signed(mode)) {
return relation == ir_relation_less_greater;
} else {
return relation == ir_relation_greater;
}
}
/**
......
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