PR rtl-optimization/92882
* regstat.c (regstat_bb_compute_calls_crossed): Don't check
INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
NONDEBUG_INSN_P.
* gfortran.dg/pr92882.f: New test.
From-SVN: r279196
2019-12-10 Jakub Jelinek <jakub@redhat.com>
+ PR rtl-optimization/92882
+ * regstat.c (regstat_bb_compute_calls_crossed): Don't check
+ INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
+ NONDEBUG_INSN_P.
+
PR ipa/92883
* ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
than *jfunc->m_vr to intersect. Formatting fix.
FOR_BB_INSNS_REVERSE (bb, insn)
{
+ if (!NONDEBUG_INSN_P (insn))
+ continue;
+
gcc_assert (INSN_UID (insn) < (int) DF_INSN_SIZE ());
struct df_insn_info *insn_info = DF_INSN_INFO_GET (insn);
unsigned int regno;
- if (!NONDEBUG_INSN_P (insn))
- continue;
-
/* Process the defs. */
if (CALL_P (insn))
{
2019-12-10 Jakub Jelinek <jakub@redhat.com>
+ PR rtl-optimization/92882
+ * gfortran.dg/pr92882.f: New test.
+
PR ipa/92883
* gcc.dg/ipa/pr92883.c: New test.
--- /dev/null
+C PR rtl-optimization/92882
+C { dg-do compile }
+C { dg-options "-O2 -fno-inline" }
+ INCLUDE 'secnds.f'