Commit 8d110b72 authored by yb9976's avatar yb9976
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) ...@@ -525,7 +525,7 @@ static ir_tarval *computed_value_Shr(const ir_node *n)
if (ta != tarval_unknown && tb != tarval_unknown) if (ta != tarval_unknown && tb != tarval_unknown)
return tarval_shr(ta, tb); 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 get_mode_null(get_irn_mode(n));
return tarval_unknown; 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