https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105032
Hongtao.liu <crazylht at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |crazylht at gmail dot com
--- Comment #2 from Hongtao.liu <crazylht at gmail dot com> ---
stuck in this loop
1731 for (prev_insn = PREV_INSN (start_insn),
1732 next_insn = NEXT_INSN (start_insn);
1733 insns_num != 1 && (prev_insn != NULL || next_insn != NULL);
)
1734 {
1735 if (prev_insn != NULL)
1736 {
1737 if (bitmap_bit_p (&lra_reg_info[regno].insn_bitmap,
(gdb)
1738 INSN_UID (prev_insn)))
1739 {
1740 first_insn = prev_insn;
1741 insns_num--;
1742 }
1743 prev_insn = PREV_INSN (prev_insn);
1744 }
1745 if (next_insn != NULL && second_insn == NULL)
1746 {
1747 if (! bitmap_bit_p (&lra_reg_info[regno].insn_bitmap,
(gdb)
1748 INSN_UID (next_insn)))
1749 next_insn = NEXT_INSN (next_insn);
1750 else
1751 {
1752 second_insn = next_insn;
1753 insns_num--;
1754 }
1755 }
1756 }
(gdb) p second_insn
$5 = (rtx_insn *) 0x7fffea2f9980
(gdb) p prev_insn
$6 = (rtx_insn *) 0x0
(gdb) p next_insn
$7 = (rtx_insn *) 0x7fffea2f9980
(gdb) p second_insn
$8 = (rtx_insn *) 0x7fffea2f9980
(gdb) p insns_num
$9 = 2
(gdb) f
#0 find_reload_regno_insns (regno=91, start=@0x7fffffffd308: 0xcc2968
<vec<int, va_heap, vl_ptr>::release()+68>, finish=@0x7fffffffd300:
0x7fffffffd320) at gcc/lra-assigns.cc:1733