aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.h
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-11-14 13:32:56 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-11-14 13:32:56 +0000
commitd2a858011c4d9c1ff8d45484ef6d40aeaffeaf10 (patch)
treee4d71de012905eda50a0432c5be7efd7d50f5e4a /gcc/gimple-fold.h
parenta5dde6ddac80b3a6e4cb3d988c5c449108411704 (diff)
downloadgcc-d2a858011c4d9c1ff8d45484ef6d40aeaffeaf10.zip
gcc-d2a858011c4d9c1ff8d45484ef6d40aeaffeaf10.tar.gz
gcc-d2a858011c4d9c1ff8d45484ef6d40aeaffeaf10.tar.bz2
gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd valueization hook defaulted to no_follow_ssa_edges.
2014-11-14 Richard Biener <rguenther@suse.de> * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd valueization hook defaulted to no_follow_ssa_edges. * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass 2nd valueization hook to gimple_simplify. * tree-ssa-ccp.c (valueize_op_1): New function to be used for gimple_simplify called via gimple_fold_stmt_to_constant_1. (ccp_fold): Adjust. * tree-vrp.c (vrp_valueize_1): New function to be used for gimple_simplify called via gimple_fold_stmt_to_constant_1. (vrp_visit_assignment_or_call): Adjust. From-SVN: r217560
Diffstat (limited to 'gcc/gimple-fold.h')
-rw-r--r--gcc/gimple-fold.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gimple-fold.h b/gcc/gimple-fold.h
index f42ff02..a38848f 100644
--- a/gcc/gimple-fold.h
+++ b/gcc/gimple-fold.h
@@ -36,7 +36,8 @@ extern bool arith_overflowed_p (enum tree_code, const_tree, const_tree,
const_tree);
extern tree no_follow_ssa_edges (tree);
extern tree follow_single_use_edges (tree);
-extern tree gimple_fold_stmt_to_constant_1 (gimple, tree (*) (tree));
+extern tree gimple_fold_stmt_to_constant_1 (gimple, tree (*) (tree),
+ tree (*) (tree) = no_follow_ssa_edges);
extern tree gimple_fold_stmt_to_constant (gimple, tree (*) (tree));
extern tree fold_const_aggregate_ref_1 (tree, tree (*) (tree));
extern tree fold_const_aggregate_ref (tree);