Commit d877729c by Eric Botcazou Committed by Eric Botcazou

* fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.

From-SVN: r204839
parent c8e1377b
2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
* fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
2013-11-15 Uros Bizjak <ubizjak@gmail.com> 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
* lto-streamer-in.c (input function): Call cgraph_create_node if * lto-streamer-in.c (input function): Call cgraph_create_node if
...@@ -13824,8 +13824,7 @@ fold_binary_loc (location_t loc, ...@@ -13824,8 +13824,7 @@ fold_binary_loc (location_t loc,
and X >= signed_max+1 because previous transformations. */ and X >= signed_max+1 because previous transformations. */
if (code == LE_EXPR || code == GT_EXPR) if (code == LE_EXPR || code == GT_EXPR)
{ {
tree st; tree st = signed_type_for (arg1_type);
st = signed_type_for (TREE_TYPE (arg1));
return fold_build2_loc (loc, return fold_build2_loc (loc,
code == LE_EXPR ? GE_EXPR : LT_EXPR, code == LE_EXPR ? GE_EXPR : LT_EXPR,
type, fold_convert_loc (loc, st, arg0), type, fold_convert_loc (loc, st, arg0),
......
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