re PR ipa/78644 (ICE: SIGSEGV in is_gimple_reg_type with -Og -fipa-cp)
authorRichard Biener <rguenther@suse.de>
Tue, 28 Mar 2017 13:57:43 +0000 (13:57 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 28 Mar 2017 13:57:43 +0000 (13:57 +0000)
commitea7d7da886911a91831bd45fc56d0aa1e2a55ecc
tree32c6fd2b62e696ad32a428181f47685729b004a6
parent498173ef330d33ca0df09bfc3481de6d56cfa64c
re PR ipa/78644 (ICE: SIGSEGV in is_gimple_reg_type with -Og -fipa-cp)

2017-03-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/78644
* tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
of a simplification result we may not use it at all.

* gcc.dg/pr78644-1.c: New testcase.
* gcc.dg/pr78644-2.c: Likewise.

From-SVN: r246534
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr78644-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr78644-2.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c