re PR tree-optimization/84670 (ICE: in compute_antic_aux, at tree-ssa-pre.c:2148...
authorRichard Biener <rguenther@suse.de>
Mon, 5 Mar 2018 13:18:12 +0000 (13:18 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 5 Mar 2018 13:18:12 +0000 (13:18 +0000)
commit36a9f50ca9813b31879486a6eb536745dd43b9f5
treea4fc4acdc05dc147b9ade90007f6507b8f2cc0ff
parent144a822fec6d680b2847f2bd35a6d6ebefd2d885
re PR tree-optimization/84670 (ICE: in compute_antic_aux, at tree-ssa-pre.c:2148 with -O2 -fno-tree-dominator-opts)

2018-03-05  Richard Biener  <rguenther@suse.de>

PR tree-optimization/84670
* tree-ssa-pre.c (struct bb_bitmap_sets): Add visited_with_visited_succs
member.
(BB_VISITED_WITH_VISITED_SUCCS): New define.
(compute_antic): Initialize BB_VISITED_WITH_VISITED_SUCCS.
(compute_antic_aux): Only assert the number of values in ANTIC_IN
doesn't grow if all successors (recursively) were visited at least
once.

* gcc.dg/pr84670-1.c: New testcase.
* gcc.dg/pr84670-2.c: Likewise.
* gcc.dg/pr84670-3.c: Likewise.
* gcc.dg/pr84670-4.c: Likewise.

From-SVN: r258243
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84670-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr84670-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr84670-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr84670-4.c [new file with mode: 0644]
gcc/tree-ssa-pre.c