mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
a1c138325c
commit
5435398d80
|
|
@ -1,3 +1,9 @@
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue