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
This commit is contained in:
parent
e311c2d89a
commit
ff7340933e
@ -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>
|
2014-11-27 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
PR tree-optimization/64083
|
PR tree-optimization/64083
|
||||||
|
@ -3461,7 +3461,7 @@ try_to_simplify (gassign *stmt)
|
|||||||
return NULL_TREE;
|
return NULL_TREE;
|
||||||
|
|
||||||
/* First try constant folding based on our current lattice. */
|
/* 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
|
if (tem
|
||||||
&& (TREE_CODE (tem) == SSA_NAME
|
&& (TREE_CODE (tem) == SSA_NAME
|
||||||
|| is_gimple_min_invariant (tem)))
|
|| is_gimple_min_invariant (tem)))
|
||||||
|
Loading…
Reference in New Issue
Block a user