Commit 4cd078ec authored by yb9976's avatar yb9976
Browse files

Prevent optimization in case of an Eor, too.

parent 12efc347
......@@ -3079,7 +3079,7 @@ static ir_node *transform_node_bitop_shift(ir_node *n)
if (is_Shl(left)) {
tv_bitop = tarval_shr(tv2, tv1);
} else if (is_Shr(left)) {
if (is_Or(n)) {
if (is_Or(n) || is_Eor(n)) {
* TODO this can be improved by checking whether
* the left shift produces an overflow
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