diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-18 11:59:34 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-18 11:59:34 +0000 |
commit | 6fec5449ffb1eab7e0304f988ce6c85d83ade73b (patch) | |
tree | ed06be32d0f633307c932b9633f8c7ecf01cec59 /gcc/tree-ssa-ccp.c | |
parent | 52f6cc19df24a2deda0b973746f05bce6453961a (diff) | |
download | gcc-6fec5449ffb1eab7e0304f988ce6c85d83ade73b.tar.gz |
2011-04-18 Richard Guenther <rguenther@suse.de>
* gimple.h (gimple_call_addr_fndecl): New function.
(gimple_call_fndecl): Use it.
* gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
for direct calls.
* tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
* tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172644 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 4775a2a567f..3aa2773ad8f 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -1702,7 +1702,6 @@ ccp_fold_stmt (gimple_stmt_iterator *gsi) tree lhs = gimple_call_lhs (stmt); tree val; tree argt; - tree callee; bool changed = false; unsigned i; @@ -1743,17 +1742,6 @@ ccp_fold_stmt (gimple_stmt_iterator *gsi) } } - callee = gimple_call_fn (stmt); - if (TREE_CODE (callee) == OBJ_TYPE_REF - && TREE_CODE (OBJ_TYPE_REF_EXPR (callee)) == SSA_NAME) - { - tree expr = OBJ_TYPE_REF_EXPR (callee); - OBJ_TYPE_REF_EXPR (callee) = valueize_op (expr); - if (gimple_fold_call (gsi, false)) - changed = true; - OBJ_TYPE_REF_EXPR (callee) = expr; - } - return changed; } |