Commit a324a065 authored by Michael Beck's avatar Michael Beck
Browse files

added check for Bad in Mul optimization

parent 9106e8c5
......@@ -2295,6 +2295,9 @@ static ir_node *transform_node_Mul(ir_node *n) {
ir_node *a = get_Mul_left(n);
ir_node *b = get_Mul_right(n);
if (is_Bad(a) || is_Bad(b))
return n;
if (mode != get_irn_mode(a))
return transform_node_Mul2n(n, mode);
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