+2000-07-31 Geoff Keating <geoffk@cygnus.com>
+
+ * flow.c (clear_log_links): Nuke global_live_at_start and
+ global_live_at_end data, since if the log_links stuff is invalid
+ so is global_live_at_*.
+
2000-07-31 Richard Henderson <rth@cygnus.com>
* tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
}
-/* Clear LOG_LINKS fields of insns in a chain. */
+/* Clear LOG_LINKS fields of insns in a chain.
+ Also clear the global_live_at_{start,end} fields of the basic block
+ structures. */
void
clear_log_links (insns)
rtx insns;
{
rtx i;
+ int b;
+
for (i = insns; i; i = NEXT_INSN (i))
if (GET_RTX_CLASS (GET_CODE (i)) == 'i')
LOG_LINKS (i) = 0;
+
+ for (b = 0; b < n_basic_blocks; b++)
+ {
+ basic_block bb = BASIC_BLOCK (i);
+
+ bb->global_live_at_start = NULL;
+ bb->global_live_at_end = NULL;
+ }
+
+ ENTRY_BLOCK_PTR->global_live_at_end = NULL;
+ EXIT_BLOCK_PTR->global_live_at_start = NULL;
}
/* Given a register bitmap, turn on the bits in a HARD_REG_SET that