===================================================================
@@ -2022,6 +2022,11 @@ check_rtl (bool final_p)
lra_assert (! final_p || reload_completed);
FOR_EACH_BB (bb)
+ {
+ /* Whether an insn is recognized or not may depend on the hotness of
+ the insn: Some back ends use it as a layman's "enable" attribute. */
+ rtl_profile_for_bb (bb);
+
FOR_BB_INSNS (bb, insn)
if (NONDEBUG_INSN_P (insn)
&& GET_CODE (PATTERN (insn)) != USE
@@ -2043,6 +2048,7 @@ check_rtl (bool final_p)
fatal_insn_not_found (insn);
}
}
+}
#endif /* #ifdef ENABLE_CHECKING */
/* Determine if the current function has an exception receiver block