Commit a0cf02b4 by Richard Stallman

(convert_to_integer): Push truncation inside COND_EXPR.

From-SVN: r1609
parent 34c9156a
......@@ -335,6 +335,13 @@ convert_to_integer (type, expr)
convert (typex, arg1),
convert (typex, arg2))));
}
else
/* It is sometimes worthwhile
to push the narrowing down through the conditional. */
return fold (build (COND_EXPR, type,
TREE_OPERAND (expr, 0),
convert (type, TREE_OPERAND (expr, 1)),
convert (type, TREE_OPERAND (expr, 2))));
}
}
}
......
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