PR rtl-optimization/72821
* lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
just return false for them.
From-SVN: r239241
+2016-08-08 Jakub Jelinek <jakub@redhat.com>
+
+ PR rtl-optimization/72821
+ * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
+ just return false for them.
+
2016-08-08 Alan Modra <amodra@gmail.com>
PR target/72771
int i, arg_regno;
basic_block bb = BLOCK_FOR_INSN (insn);
- while ((insn = next_nondebug_insn (insn)) != NULL_RTX
- && bb == BLOCK_FOR_INSN (insn))
+ while ((insn = next_nondebug_insn (insn)) != NULL_RTX)
{
+ if (BARRIER_P (insn) || bb != BLOCK_FOR_INSN (insn))
+ return false;
if (! INSN_P (insn))
continue;
if (GET_CODE (PATTERN (insn)) == USE