[Bug target/85860] [8/9 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.c:1810: unable to find a register to spill with -flive-range-shrinkage -mbmi2

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Fri Oct 26 06:04:00 GMT 2018


--- Comment #4 from Zdenek Sojka <zsojka at seznam dot cz> ---
Created attachment 44904
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44904&action=edit
unreduced testcase

(In reply to Arseny Solokha from comment #3)
> I cannot reproduce it anymore w/ gcc-9.0.0-alpha20181021 snapshot (r265361).
> Seems to be fixed on the trunk w/ recent LRA-related patches.

The unreduced testcase is still failing for me.

$ x86_64-pc-linux-gnu-gcc -O2 -fno-guess-branch-probability
-flive-range-shrinkage -mbmi2 xxx.c -w
xxx.c: In function 'bar1':
xxx.c:62:1: error: unable to find a register to spill
   62 | }
      | ^
xxx.c:62:1: error: this is the insn:
(insn 368 117 348 3 (set (reg:DI 338)
        (reg:DI 1 dx)) "xxx.c":57:12 66 {*movdi_internal}
     (expr_list:REG_DEAD (reg:DI 1 dx)
during RTL pass: reload
xxx.c:62:1: internal compiler error: in lra_split_hard_reg_for, at
0x68455b _fatal_insn(char const*, rtx_def const*, char const*, int, char
0xc6f016 lra_split_hard_reg_for()
0xc6870c lra(_IO_FILE*)
0xc153e9 do_reload
0xc153e9 execute
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

More information about the Gcc-bugs mailing list