* tree-ssa-reassoc.c (attempt_builtin_copysign): Call
gimple_call_builtin instead of is_gimple_call.
* gcc.dg/tree-ssa/reassoc-42.c: New test.
From-SVN: r228843
+2015-10-15 Marek Polacek <polacek@redhat.com>
+
+ * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
+ gimple_call_builtin instead of is_gimple_call.
+
2015-10-15 Richard Biener <rguenther@suse.de>
* tree-vect-stmts.c (vect_init_vector): Remove unused vars.
+2015-10-15 Marek Polacek <polacek@redhat.com>
+
+ * gcc.dg/tree-ssa/reassoc-42.c: New test.
+
2015-10-15 Marek Polacek <polacek@redhat.com>
PR tree-optimization/67953
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-Ofast" } */
+
+double
+foo (double f(void))
+{
+ return 2. * f ();
+}
&& has_single_use (oe->op))
{
gimple *def_stmt = SSA_NAME_DEF_STMT (oe->op);
- if (is_gimple_call (def_stmt))
+ if (gimple_call_builtin_p (def_stmt, BUILT_IN_NORMAL))
{
tree fndecl = gimple_call_fndecl (def_stmt);
tree arg0, arg1;