aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-04-08 12:19:45 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-04-08 12:19:45 +0000
commit9bfc434b7aa052e8d9175d3eca8fc355618e6fab (patch)
tree77df3037e3807fabf488254798b809e577345502 /gcc/value-prof.c
parent7c1f0b40206bed9fc4b62a04ca9f49c8b9cea4dc (diff)
downloadgcc-9bfc434b7aa052e8d9175d3eca8fc355618e6fab.zip
gcc-9bfc434b7aa052e8d9175d3eca8fc355618e6fab.tar.gz
gcc-9bfc434b7aa052e8d9175d3eca8fc355618e6fab.tar.bz2
gimple.h (gimple_call_fntype): New function.
2011-04-08 Richard Guenther <rguenther@suse.de> * gimple.h (gimple_call_fntype): New function. (gimple_call_return_type): Use it. * expr.c (expand_expr_real_1): Use gimple_call_fntype. * gimple-low.c (gimple_check_call_args): Likewise. * gimple.c (gimple_call_flags): Likewise. (gimple_call_arg_flags): Likewise. (gimple_call_return_flags): Likewise. * tree-cfg.c (verify_gimple_call): Likewise. (do_warn_unused_result): Likewise. * tree-ssa-ccp.c (ccp_fold_stmt): Likewise. * value-prof.c (gimple_ic_transform): Fix fndecl check. From-SVN: r172178
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r--gcc/value-prof.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index 8491c77..71e889d 100644
--- a/gcc/value-prof.c
+++ b/gcc/value-prof.c
@@ -1230,16 +1230,13 @@ gimple_ic_transform (gimple stmt)
histogram_value histogram;
gcov_type val, count, all, bb_all;
gcov_type prob;
- tree callee;
gimple modify;
struct cgraph_node *direct_call;
if (gimple_code (stmt) != GIMPLE_CALL)
return false;
- callee = gimple_call_fn (stmt);
-
- if (TREE_CODE (callee) == FUNCTION_DECL)
+ if (gimple_call_fndecl (stmt) != NULL_TREE)
return false;
histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_INDIR_CALL);