re PR tree-optimization/67191 (ICE: in before_dom_children, at tree-ssa-sccvn.c:4372)
authorRichard Biener <rguenther@suse.de>
Thu, 13 Aug 2015 09:39:50 +0000 (09:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 13 Aug 2015 09:39:50 +0000 (09:39 +0000)
commit310d5e7d8ce98f214ba4d83c4fd336f2a82565a2
tree8944fccac960f218c34750d0637b8cf35ca65c95
parentd27555bfeeb3f58037d5d399df5ae22c7c90d3fa
re PR tree-optimization/67191 (ICE: in before_dom_children, at tree-ssa-sccvn.c:4372)

2015-08-13  Richard Biener  <rguenther@suse.de>

PR tree-optimization/67191
* tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
assert we value-numbered last stmts operand because it can validly
trigger for unreachable code.

* gcc.dg/torture/pr67191.c: New testcase.
* g++.dg/torture/pr67191.C: Likewise.

From-SVN: r226854
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr67191.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr67191.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c