aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-05-08 10:19:17 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-05-08 10:19:17 +0000
commitfb42e303b41221c86c78c38d89c05b13e98beec7 (patch)
tree3ac1d32ee33ffe07dfcde2e25e9a059bb20ed92b /gcc/gimple-fold.c
parenta3820abe7c8c0c3c8ebb3a0e770cb120f2ca07db (diff)
downloadgcc-fb42e303b41221c86c78c38d89c05b13e98beec7.zip
gcc-fb42e303b41221c86c78c38d89c05b13e98beec7.tar.gz
gcc-fb42e303b41221c86c78c38d89c05b13e98beec7.tar.bz2
gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove pointer propagation special-case.
2014-05-08 Richard Biener <rguenther@suse.de> * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove pointer propagation special-case. From-SVN: r210208
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r--gcc/gimple-fold.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
index 9d42e6a..264356f 100644
--- a/gcc/gimple-fold.c
+++ b/gcc/gimple-fold.c
@@ -2635,23 +2635,8 @@ gimple_fold_stmt_to_constant_1 (gimple stmt, tree (*valueize) (tree))
/* Handle unary operators that can appear in GIMPLE form.
Note that we know the single operand must be a constant,
so this should almost always return a simplified RHS. */
- tree lhs = gimple_assign_lhs (stmt);
tree op0 = (*valueize) (gimple_assign_rhs1 (stmt));
- /* Conversions are useless for CCP purposes if they are
- value-preserving. Thus the restrictions that
- useless_type_conversion_p places for restrict qualification
- of pointer types should not apply here.
- Substitution later will only substitute to allowed places. */
- if (CONVERT_EXPR_CODE_P (subcode)
- && POINTER_TYPE_P (TREE_TYPE (lhs))
- && POINTER_TYPE_P (TREE_TYPE (op0))
- && TYPE_ADDR_SPACE (TREE_TYPE (lhs))
- == TYPE_ADDR_SPACE (TREE_TYPE (op0))
- && TYPE_MODE (TREE_TYPE (lhs))
- == TYPE_MODE (TREE_TYPE (op0)))
- return op0;
-
return
fold_unary_ignore_overflow_loc (loc, subcode,
gimple_expr_type (stmt), op0);