diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-27 14:32:47 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-27 14:32:47 +0000 |
commit | 09937c79d6fc38165805d31ca230fb2043137385 (patch) | |
tree | 2ef7f1febc0aea12d3964123c22645dfb8cb316b /gcc/gimple-fold.c | |
parent | 04324e294846a522a86098f5699dc79a0417e27e (diff) | |
download | ppe42-gcc-09937c79d6fc38165805d31ca230fb2043137385.tar.gz ppe42-gcc-09937c79d6fc38165805d31ca230fb2043137385.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167200 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r-- | gcc/gimple-fold.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 8d0157bd426..ae4771c903a 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; } |