re PR middle-end/65735 (ICE (in duplicate_thread_path, at tree-ssa-threadupdate.c))
authorJakub Jelinek <jakub@redhat.com>
Sat, 11 Apr 2015 17:32:54 +0000 (19:32 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 11 Apr 2015 17:32:54 +0000 (19:32 +0200)
commite9329eb5869ee50d448ddd40489314e47363c02a
treed0aea9c90c9f68ddc9d3b8158f8c669005edd1b5
parentbc7e7ed3e350ea14c1c4e6432c8c1fb19b3c0668
re PR middle-end/65735 (ICE (in duplicate_thread_path, at tree-ssa-threadupdate.c))

PR tree-optimization/65735
* tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
Remove visited_phis argument, add visited_bbs, avoid recursing into the
same bb rather than just into the same phi node.
(thread_through_normal_block): Adjust caller.

* gcc.c-torture/compile/pr65735.c: New test.

From-SVN: r222011
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr65735.c [new file with mode: 0644]
gcc/tree-ssa-threadedge.c