re PR tree-optimization/82060 (ICE in refs_may_alias_p_1 with devirtualization enabled)
authorRichard Biener <rguenther@suse.de>
Mon, 4 Sep 2017 10:57:20 +0000 (10:57 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 4 Sep 2017 10:57:20 +0000 (10:57 +0000)
commite910a9b11a04d37e2a9a92dd2bc39097728f132c
tree62faaa2c367d615fe11ff6549f77195a57cf015e
parent76b0cbf8b639a5cc574c199993a158586aae8225
re PR tree-optimization/82060 (ICE in refs_may_alias_p_1 with devirtualization enabled)

2017-09-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/82060
* tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
Move devirtualization after stmt folding and before EH/AB/noreturn
cleanup to get the stmt refs canonicalized.  Use a bool instead
of gimple_modified_p since that doesn't work for NOPs.  Schedule
NOPs generated by folding for removal.

* g++.dg/torture/pr82060.C: New testcase.

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