re PR tree-optimization/78542 (wrong code at -Og results in endless loop)
authorRichard Biener <rguenther@suse.de>
Mon, 28 Nov 2016 15:03:55 +0000 (15:03 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 28 Nov 2016 15:03:55 +0000 (15:03 +0000)
commit6522add29b65f7fe572202b2a1e83a8cd00b07fa
tree1372289a2cbe9345b5231abe32c44b42be707a59
parent6a6951b1bf77ab4d1c0fbffc361ad047e3aa0b98
re PR tree-optimization/78542 (wrong code at -Og results in endless loop)

2016-11-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/78542
* tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
if allowed.

* gcc.dg/torture/pr78542.c: New testcase.

From-SVN: r242920
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr78542.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c