diff options
author | Marek Polacek <polacek@redhat.com> | 2015-10-15 13:22:47 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-10-15 13:22:47 +0000 |
commit | 261e8f066b95ebc02530df8b78be14f911c73406 (patch) | |
tree | 99eb5b37136fb0e25fa68afd394b50f508a1053c /gcc/tree-ssa-reassoc.c | |
parent | 7701fc20a0774c7cf7c3903e3647e471a6658838 (diff) | |
download | gcc-261e8f066b95ebc02530df8b78be14f911c73406.zip gcc-261e8f066b95ebc02530df8b78be14f911c73406.tar.gz gcc-261e8f066b95ebc02530df8b78be14f911c73406.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
-rw-r--r-- | gcc/tree-ssa-reassoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 62438dd..45b8d46 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -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; |