Commit 033a7b6d authored by Christoph Mallon's avatar Christoph Mallon
Browse files

iropt: Use tarval_neg(x) instead of tarval_sub(get_mode_null(), x).

parent dbc33326
......@@ -4585,7 +4585,7 @@ is_bittest: {
}
/* -a == c ==> a == -c, -a != c ==> a != -c */
else if (is_Minus(left)) {
ir_tarval *tv2 = tarval_sub(get_mode_null(mode), tv, NULL);
ir_tarval *tv2 = tarval_neg(tv);
if (tarval_is_constant(tv2)) {
left = get_Minus_op(left);
......
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