Commit 8d110b72 authored by sebastian.buchwald1's avatar sebastian.buchwald1
Browse files

Added local optimization: a >>u a -> 0.

parent cbfce4f6
......@@ -525,7 +525,7 @@ static ir_tarval *computed_value_Shr(const ir_node *n)
if (ta != tarval_unknown && tb != tarval_unknown)
return tarval_shr(ta, tb);
if (is_oversize_shift(n))
if (a == b || is_oversize_shift(n))
return get_mode_null(get_irn_mode(n));
return tarval_unknown;
}
......
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