diff options
author | Richard Guenther <rguenther@suse.de> | 2008-07-28 18:29:04 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-07-28 18:29:04 +0000 |
commit | 1961418e82984387246089d7254c766c9e7972aa (patch) | |
tree | 82ea529b81e1a3235c5b280bbbbe8df66346b1e6 /gcc/tree-ssa-structalias.c | |
parent | 806b3528b9a34fd7bff1424a65d34907a19ab467 (diff) | |
download | gcc-1961418e82984387246089d7254c766c9e7972aa.zip gcc-1961418e82984387246089d7254c766c9e7972aa.tar.gz gcc-1961418e82984387246089d7254c766c9e7972aa.tar.bz2 |
tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
2008-07-28 Richard Guenther <rguenther@suse.de>
* tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
(insert_fake_stores): Remove.
(realify_fake_stores): Likewise.
(execute_pre): Remove dead code.
* tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary
case.
(find_func_aliases): Deal with it here instead.
Re-enable gcc_unreachable call.
From-SVN: r138213
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 3b9ce02..6fb9bdd 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -3131,31 +3131,6 @@ get_constraint_for_1 (tree t, VEC (ce_s, heap) **results, bool address_p) } break; } - case tcc_unary: - { - /* FIXME tuples: this won't trigger, instead get_constraint_for - needs to be fed with piecewise trees. */ - switch (TREE_CODE (t)) - { - CASE_CONVERT: - { - tree op = TREE_OPERAND (t, 0); - - /* Cast from non-pointer to pointers are bad news for us. - Anything else, we see through */ - if (!(POINTER_TYPE_P (TREE_TYPE (t)) - && ! POINTER_TYPE_P (TREE_TYPE (op)))) - { - get_constraint_for_1 (op, results, address_p); - return; - } - - /* FALLTHRU */ - } - default:; - } - break; - } case tcc_exceptional: { switch (TREE_CODE (t)) @@ -3877,7 +3852,10 @@ find_func_aliases (gimple origt) if (gimple_assign_rhs_code (t) == POINTER_PLUS_EXPR) get_constraint_for_ptr_offset (gimple_assign_rhs1 (t), gimple_assign_rhs2 (t), &rhsc); - else if (rhsop) + else if ((IS_CONVERT_EXPR_CODE_P (gimple_assign_rhs_code (t)) + && !(POINTER_TYPE_P (gimple_expr_type (t)) + && !POINTER_TYPE_P (TREE_TYPE (rhsop)))) + || gimple_assign_single_p (t)) get_constraint_for (rhsop, &rhsc); else { @@ -3924,9 +3902,8 @@ find_func_aliases (gimple origt) if (could_have_pointers (gimple_assign_rhs1 (t))) make_escape_constraint (gimple_assign_rhs1 (t)); } - /* FIXME tuples else - gcc_unreachable (); */ + gcc_unreachable (); } else if (stmt_escape_type == ESCAPE_BAD_CAST) { |