Re: [PATCH] Avoid building CALL_EXPRs in gimple_fold_stmt_to_constant_1

2014-12-03 Thread Richard Biener
On Wed, 3 Dec 2014, Richard Biener wrote: > > This refactors fold_builtin_call_array to not build a CALL_EXPR if > no simplification was possible (we have fold_build_call_array_loc > for that). This requires to fix the single case where that was > deemed necessary (fold_builtin_varargs calling f

[PATCH] Avoid building CALL_EXPRs in gimple_fold_stmt_to_constant_1

2014-12-03 Thread Richard Biener
This refactors fold_builtin_call_array to not build a CALL_EXPR if no simplification was possible (we have fold_build_call_array_loc for that). This requires to fix the single case where that was deemed necessary (fold_builtin_varargs calling fold_builtin_fpclassify) which is easily fixed to simp