gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd valueization hook defaulted...
authorRichard Biener <rguenther@suse.de>
Fri, 14 Nov 2014 13:32:56 +0000 (13:32 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 14 Nov 2014 13:32:56 +0000 (13:32 +0000)
commitd2a858011c4d9c1ff8d45484ef6d40aeaffeaf10
treee4d71de012905eda50a0432c5be7efd7d50f5e4a
parenta5dde6ddac80b3a6e4cb3d988c5c449108411704
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
gcc/ChangeLog
gcc/gimple-fold.c
gcc/gimple-fold.h
gcc/tree-ssa-ccp.c
gcc/tree-vrp.c