aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-11-27 14:32:47 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-11-27 14:32:47 +0000
commit3dbe9454540ab183476df93e6ef8eab50fbb13b5 (patch)
tree2ef7f1febc0aea12d3964123c22645dfb8cb316b /gcc/gimple-fold.c
parentd3b8263e201b728fd6f9a4e418b9d4f3c477ae99 (diff)
downloadgcc-3dbe9454540ab183476df93e6ef8eab50fbb13b5.zip
gcc-3dbe9454540ab183476df93e6ef8eab50fbb13b5.tar.gz
gcc-3dbe9454540ab183476df93e6ef8eab50fbb13b5.tar.bz2
gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
2010-11-27 Richard Guenther <rguenther@suse.de> * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p. (gimple_assign_ssa_name_copy_p): Likewise. (gimple_assign_unary_nop_p): Use is_gimple_assign. (is_gimple_cast): Remove. (gimple_assign_single_p): Move ... * gimple.h (gimple_assign_single_p): ... here. (is_gimple_cast): Remove. (gimple_assign_rhs_code): Simplify. * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P instead of is_gimple_cast. * ipa-type-escape.c (look_for_casts): Likewise. From-SVN: r167200
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r--gcc/gimple-fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
index 8d0157b..ae4771c 100644
--- a/gcc/gimple-fold.c
+++ b/gcc/gimple-fold.c
@@ -1273,7 +1273,7 @@ gimple_fold_builtin (gimple stmt)
/* If the result is not a valid gimple value, or not a cast
of a valid gimple value, then we cannot use the result. */
if (is_gimple_val (new_val)
- || (is_gimple_cast (new_val)
+ || (CONVERT_EXPR_P (new_val)
&& is_gimple_val (TREE_OPERAND (new_val, 0))))
return new_val;
}