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
+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
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)))