From: Richard Biener Date: Tue, 10 Nov 2020 12:06:08 +0000 (+0100) Subject: tree-optimization/97780 - fix ICE in fini_pre X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=960c4712c8e1e08f29af999d4198bd96fcccb93c;p=gcc.git tree-optimization/97780 - fix ICE in fini_pre This deals with blocks elimination added. 2020-11-10 Richard Biener PR tree-optimization/97780 * tree-ssa-pre.c (fini_pre): Deal with added basic blocks when freeing PHI_TRANS_TABLE. --- diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 160f3b4593a..90877e3c68e 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -4196,7 +4196,7 @@ fini_pre () basic_block bb; FOR_ALL_BB_FN (bb, cfun) - if (PHI_TRANS_TABLE (bb)) + if (bb->aux && PHI_TRANS_TABLE (bb)) delete PHI_TRANS_TABLE (bb); free_aux_for_blocks (); }