From 960c4712c8e1e08f29af999d4198bd96fcccb93c Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 10 Nov 2020 13:06:08 +0100 Subject: [PATCH] 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. --- gcc/tree-ssa-pre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (); } -- 2.30.2