https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115785

            Bug ID: 115785
           Summary: ICE when building embree-4.3.1 on amd64 with
                    -flate-combine-instructions
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
                CC: rsandifo at gcc dot gnu.org
  Target Milestone: ---

Created attachment 58590
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58590&action=edit
bvh_builder_sah_spatial.cpp.avx2.cpp.ii

Noticed by one of our testers with -flate-combine-instructions on amd64.

```
$ g++ -O3 -flate-combine-instructions -fno-vect-cost-model -pipe
-fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv -fsigned-char
--std=c++11 -g -O3 -mf16c -mavx2 -mfma -mlzcnt -mbmi -mbmi2 -c
bvh_builder_sah_spatial.cpp.avx2.cpp.ii
[...]
0x55e63b2fa468 internal_error(char const*, ...)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:491
0x55e63abd4797 crash_signal
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/toplev.cc:319
0x55e63c071afa rtl_ssa::insn_info::order_node*
rtl_ssa::insn_note::as_a<rtl_ssa::insn_info::order_node*>()
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-ssa/member-fns.inl:495
0x55e63c071afa rtl_ssa::insn_info::get_known_order_node() const
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-ssa/internals.inl:482
0x55e63c071afa rtl_ssa::insn_info::slow_compare_with(rtl_ssa::insn_info const&)
const
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-ssa/insns.cc:78
0x55e63bbe5333 rtl_ssa::insn_info::operator<(rtl_ssa::insn_info const&) const
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-ssa/member-fns.inl:519
0x55e63bbe5333 rtl_ssa::earlier_insn(rtl_ssa::insn_info*, rtl_ssa::insn_info*)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-ssa/insn-utils.h:27
0x55e63bbe5333 rtl_ssa::move_earlier_than(rtl_ssa::insn_range_info,
rtl_ssa::insn_info*)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-ssa/movement.h:60
0x55e63bbe5333 bool
rtl_ssa::restrict_movement_for_uses<rtl_ssa::ignore_insn>(rtl_ssa::insn_range_info&,
const_derived_container<rtl_ssa::use_info*, array_slice<rtl_ssa::access_info*
const> >, rtl_ssa::ignore_insn)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-ssa/movement.h:299
0x55e63bbe5333 bool
rtl_ssa::restrict_movement<rtl_ssa::ignore_insn>(rtl_ssa::insn_change&,
rtl_ssa::ignore_insn)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-ssa/change-utils.h:64
0x55e63bc360a3 rtl_ssa::restrict_movement(rtl_ssa::insn_change&)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-ssa/change-utils.h:75
0x55e63bc360a3 try_to_preserve_debug_info
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/late-combine.cc:300
0x55e63bc360a3 substitute_debug_use
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/late-combine.cc:317
0x55e63bc360a3 substitute_optional_uses
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/late-combine.cc:414
0x55e63a357a48 run
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/late-combine.cc:449
0x55e63a357a48 combine_into_uses
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/late-combine.cc:683
0x55e63bb27536 execute
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/late-combine.cc:711
0x55e63bb27536 execute
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/late-combine.cc:760
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

Reply via email to