re PR tree-optimization/79740 (ICE on -Os and above in both 32-bit and 64-bit modes...
authorRichard Biener <rguenther@suse.de>
Tue, 28 Feb 2017 15:32:24 +0000 (15:32 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 28 Feb 2017 15:32:24 +0000 (15:32 +0000)
commit41aa3a38572bd643ae958fb23a9fad87cdddd9bb
treedbbfdd34b9627de77f02682c0884df4ffbfa6a56
parent587240d2494dae65fd67d5bd642a6123ecc89738
re PR tree-optimization/79740 (ICE on -Os and above in both 32-bit and 64-bit modes on x86_64-linux-gnu (internal compiler error: in VN_INFO_GET, at tree-ssa-sccvn.c:407  }))

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

PR tree-optimization/79740
* tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
inserts.
(visit_nary_op): Insert the nary into the hashtable if we
pattern-matched sth.
* tree-ssa-pre.c (eliminate_insert): Robustify.

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

From-SVN: r245780
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr79740.c [new file with mode: 0644]
gcc/tree-ssa-pre.c
gcc/tree-ssa-sccvn.c