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

Do not optimize a+a into 2*a for non-integer modes

[r15478]
parent a45874f2
......@@ -1912,7 +1912,7 @@ static ir_node *transform_node_Add(ir_node *n) {
return n;
if (mode_is_num(mode)) {
if (a == b) {
if (a == b && mode_is_int(mode)) {
ir_node *block = get_irn_n(n, -1);
n = new_rd_Mul(
......
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