Commit 261e8f06 by Marek Polacek Committed by Marek Polacek

tree-ssa-reassoc.c (attempt_builtin_copysign): Call gimple_call_builtin instead of is_gimple_call.

	* 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
parent 7701fc20
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
* gcc.dg/fold-minus-6.c (fn4): Change the type of A to
unsigned.
......
/* { dg-do compile } */
/* { dg-options "-Ofast" } */
double
foo (double f(void))
{
return 2. * f ();
}
......@@ -4643,7 +4643,7 @@ attempt_builtin_copysign (vec<operand_entry *> *ops)
&& 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;
......
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