diff options
author | Richard Biener <rguenther@suse.de> | 2014-11-27 10:00:15 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-11-27 10:00:15 +0000 |
commit | ff7340933e1cec8ea5cc733eab6dbd88c7d5a840 (patch) | |
tree | ff7f227c54e5c7bba078803d2b8fe37d85a85259 /gcc | |
parent | e311c2d89a3bb45fe65e384126699dbaa2f57fdf (diff) | |
download | gcc-ff7340933e1cec8ea5cc733eab6dbd88c7d5a840.zip gcc-ff7340933e1cec8ea5cc733eab6dbd88c7d5a840.tar.gz gcc-ff7340933e1cec8ea5cc733eab6dbd88c7d5a840.tar.bz2 |
tree-ssa-sccvn.c (try_to_simplify): Allow gimple_fold_stmt_to_constant_1 to follow SSA edges.
2014-11-27 Richard Biener <rguenther@suse.de>
* tree-ssa-sccvn.c (try_to_simplify): Allow
gimple_fold_stmt_to_constant_1 to follow SSA edges.
From-SVN: r218116
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa-sccvn.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71828c2..2b4eec7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2014-11-27 Richard Biener <rguenther@suse.de> + * tree-ssa-sccvn.c (try_to_simplify): Allow + gimple_fold_stmt_to_constant_1 to follow SSA edges. + +2014-11-27 Richard Biener <rguenther@suse.de> + PR tree-optimization/64083 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not forcibly mark loop for removal the wrong way. diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 8b3f2c7..7f69415 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))) |