re PR tree-optimization/84746 (ICE on valid code at -O2 and -O3: Segmentation fault)
authorRichard Biener <rguenther@suse.de>
Thu, 8 Mar 2018 09:23:44 +0000 (09:23 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 8 Mar 2018 09:23:44 +0000 (09:23 +0000)
commitde341bf0fbfddec8a7c0711ac5503a55f7aaf6dc
tree4ff2849537a8e91e26e15bbc14b98adf5171ab96
parent5223e95ac279580bc9df57bd51c9badb3f98795a
re PR tree-optimization/84746 (ICE on valid code at -O2 and -O3: Segmentation fault)

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

PR tree-optimization/84746
* tree-ssa-pre.c (find_leader_in_sets): Deal with SET1 being NULL.
(phi_translate): Pass in destination ANTIC_OUT set.
(phi_translate_1): Likewise.  For a simplified result lookup
a leader in ANTIC_OUT and AVAIL_OUT, not the ANTIC_IN sets.
(phi_translate_set): Adjust.
(do_pre_regular_insertion): Likewise.
(do_pre_partial_partial_insertion): Likewise.

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

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