+2010-11-19 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/46546
+ * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
+
2010-11-18 Richard Henderson <rth@redhat.com>
PR middle-end/46515
&& ((JUMP_P (prev) && any_condjump_p (prev))
|| CALL_P (prev)))
replace = true;
- /* Empty functions get branch mispredict even when the jump destination
- is not visible to us. */
+ /* Empty functions get branch mispredict even when
+ the jump destination is not visible to us. */
if (!prev && !optimize_function_for_size_p (cfun))
replace = true;
}
if (!insn)
insn = ret;
- /* Two NOPs are counted as one instruction. */
- insn_count = 2 * (4 - insn_count);
+ /* Two NOPs count as one instruction. */
+ insn_count = 2 * (4 - insn_count);
emit_insn_before (gen_nops (GEN_INT (insn_count)), insn);
}
}
static void
ix86_reorg (void)
{
+ /* We are freeing block_for_insn in the toplev to keep compatibility
+ with old MDEP_REORGS that are not CFG based. Recompute it now. */
+ compute_bb_for_insn ();
+
if (optimize && optimize_function_for_speed_p (cfun))
{
if (TARGET_PAD_SHORT_FUNCTION)