tree-optimization/97780 - fix ICE in fini_pre

This deals with blocks elimination added.

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.
This commit is contained in:
Richard Biener 2020-11-10 13:06:08 +01:00
parent 1900707e56
commit 960c4712c8

View file

@ -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 ();
}