public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] tree-optimization/97780 - fix ICE in fini_pre
@ 2020-11-10 12:07 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2020-11-10 12:07 UTC (permalink / raw)
  To: gcc-patches

This deals with blocks elimination added.

Pushed as obvious.

2020-11-10  Richard Biener  <rguenther@suse.de>

	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.26.2

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-10 12:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 12:07 [PATCH] tree-optimization/97780 - fix ICE in fini_pre Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).