tree-ssa-sccvn.c (try_to_simplify): Allow gimple_fold_stmt_to_constant_1 to follow...
authorRichard Biener <rguenther@suse.de>
Thu, 27 Nov 2014 10:00:15 +0000 (10:00 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 27 Nov 2014 10:00:15 +0000 (10:00 +0000)
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

gcc/ChangeLog
gcc/tree-ssa-sccvn.c

index 71828c2299de6af33d7ddec2f9583821eda925fa..2b4eec7dcc34397927f215fab7ac31a5316267a6 100644 (file)
@@ -1,3 +1,8 @@
+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
index 8b3f2c7f058e9075a7bdd9076eda67670a237da0..7f6941527457451edfe4654920ce80675a2a4ba6 100644 (file)
@@ -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)))