gimple.h (gimple_call_addr_fndecl): New function.
authorRichard Guenther <rguenther@suse.de>
Mon, 18 Apr 2011 11:59:34 +0000 (11:59 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 18 Apr 2011 11:59:34 +0000 (11:59 +0000)
commit3b45a007ef93933c0c70c37cb87bf6097db68a32
treeed06be32d0f633307c932b9633f8c7ecf01cec59
parent870ef0cee00e152bbbf52891fd4e15a949fd474a
gimple.h (gimple_call_addr_fndecl): New function.

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.

From-SVN: r172644
gcc/ChangeLog
gcc/gimple-fold.c
gcc/gimple.h
gcc/tree-ssa-ccp.c
gcc/tree-ssa-pre.c