From: Richard Biener Date: Thu, 27 Nov 2014 10:00:15 +0000 (+0000) Subject: tree-ssa-sccvn.c (try_to_simplify): Allow gimple_fold_stmt_to_constant_1 to follow... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff7340933e1cec8ea5cc733eab6dbd88c7d5a840;p=gcc.git tree-ssa-sccvn.c (try_to_simplify): Allow gimple_fold_stmt_to_constant_1 to follow SSA edges. 2014-11-27 Richard Biener * tree-ssa-sccvn.c (try_to_simplify): Allow gimple_fold_stmt_to_constant_1 to follow SSA edges. From-SVN: r218116 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71828c2299d..2b4eec7dcc3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-11-27 Richard Biener + + * tree-ssa-sccvn.c (try_to_simplify): Allow + gimple_fold_stmt_to_constant_1 to follow SSA edges. + 2014-11-27 Richard Biener PR tree-optimization/64083 diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 8b3f2c7f058..7f694152745 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -3461,7 +3461,7 @@ try_to_simplify (gassign *stmt) return NULL_TREE; /* First try constant folding based on our current lattice. */ - tem = gimple_fold_stmt_to_constant_1 (stmt, vn_valueize); + tem = gimple_fold_stmt_to_constant_1 (stmt, vn_valueize, vn_valueize); if (tem && (TREE_CODE (tem) == SSA_NAME || is_gimple_min_invariant (tem)))