Bug 91453 - ICE in elimination_costs_in_insn at reload1.c:3547
Summary: ICE in elimination_costs_in_insn at reload1.c:3547
Status: RESOLVED DUPLICATE of bug 91454
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 10.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2019-08-15 07:08 UTC by Martin Liška
Modified: 2019-08-15 13:21 UTC (History)
2 users (show)

See Also:
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2019-08-15 07:08:21 UTC
It's as old as we have -mavx512vl (since GCC 5.1.0):

$ gfortran /home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/deferred_character_23.f90 -Os -mavx512vl -fno-rerun-cse-after-loop -c
during RTL pass: ira
/home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/deferred_character_23.f90:27:0:

   27 | END MODULE TN4
      | 
internal compiler error: in elimination_costs_in_insn, at reload1.c:3547
0x6b68b6 elimination_costs_in_insn
	/home/marxin/Programming/gcc/gcc/reload1.c:3547
0xdad05d calculate_elim_costs_all_insns()
	/home/marxin/Programming/gcc/gcc/reload1.c:1609
0xc5d45d ira_costs()
	/home/marxin/Programming/gcc/gcc/ira-costs.c:2305
0xc56b79 ira_build()
	/home/marxin/Programming/gcc/gcc/ira-build.c:3432
0xc4db07 ira
	/home/marxin/Programming/gcc/gcc/ira.c:5352
0xc4db07 execute
	/home/marxin/Programming/gcc/gcc/ira.c:5663
Comment 1 Uroš Bizjak 2019-08-15 13:00:27 UTC
Are you sure? It compiles OK with gcc-9 for me.
Comment 2 Uroš Bizjak 2019-08-15 13:10:34 UTC
Latest SVN creates the following RTX in _.ira dump:

(insn 144 12 145 2 (set (subreg:V2DI (reg:DI 161) 0)
        (vec_merge:V2DI (vec_duplicate:V2DI (reg:DI 111 [ ubound.0 ]))
            (const_vector:V2DI [
                    (const_int 0 [0]) repeated x2
                ])
            (const_int 1 [0x1]))) "deferred_character_23.f90":27:0 -1
     (nil))

This is suspiciously close to PR91454. "-1" hints at unknown insn.
Comment 3 Uroš Bizjak 2019-08-15 13:21:51 UTC
Fixed by r274535.

*** This bug has been marked as a duplicate of bug 91454 ***