Commit 5435398d by Jakub Jelinek Committed by Jakub Jelinek

re PR rtl-optimization/72821 (RTL check: expected elt 2 type 'B', have '0' (rtx…

re PR rtl-optimization/72821 (RTL check: expected elt 2 type 'B', have '0' (rtx barrier) in BLOCK_FOR_INSN, at rtl.h:1424)

	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
parent a1c13832
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
......
......@@ -697,9 +697,10 @@ regno_in_use_p (rtx_insn *insn, unsigned int regno)
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment