+2013-04-04 Andrey Belevantsev <abel@ispras.ru>
+
+ Backport from mainline
+ 2012-11-09 Andrey Belevantsev <abel@ispras.ru>
+
+ PR rtl-optimization/54472
+ * sel-sched-ir.c (has_dependence_note_reg_set): Handle implicit sets.
+ (has_dependence_note_reg_clobber,
+ as_dependence_note_reg_use): Likewise.
+
2013-04-04 Marek Polacek <polacek@redhat.com>
Backported from mainline
|| reg_last->clobbers != NULL)
*dsp = (*dsp & ~SPECULATIVE) | DEP_OUTPUT;
- if (reg_last->uses)
+ if (reg_last->uses || reg_last->implicit_sets)
*dsp = (*dsp & ~SPECULATIVE) | DEP_ANTI;
}
}
if (reg_last->sets)
*dsp = (*dsp & ~SPECULATIVE) | DEP_OUTPUT;
- if (reg_last->uses)
+ if (reg_last->uses || reg_last->implicit_sets)
*dsp = (*dsp & ~SPECULATIVE) | DEP_ANTI;
}
}
if (reg_last->sets)
*dsp = (*dsp & ~SPECULATIVE) | DEP_TRUE;
- if (reg_last->clobbers)
+ if (reg_last->clobbers || reg_last->implicit_sets)
*dsp = (*dsp & ~SPECULATIVE) | DEP_ANTI;
/* Handle BE_IN_SPEC. */
+2013-04-04 Andrey Belevantsev <abel@ispras.ru>
+
+ Backport from mainline
+ 2012-11-09 Andrey Belevantsev <abel@ispras.ru>
+
+ PR rtl-optimization/54472
+ * gcc.dg/pr54472.c: New test.
+
2013-04-04 Marek Polacek <polacek@redhat.com>
Backported from mainline
--- /dev/null
+/* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */
+/* { dg-options "-O -fschedule-insns -fselective-scheduling" } */
+
+int main ()
+{
+ int a[3][3][3];
+ __builtin_memset (a, 0, sizeof a);
+ return 0;
+}