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

            Bug ID: 107925
           Summary: ICE in update_specialized_profile at
                    gcc/ipa-cp.cc:5082 for 531.deepsjeng_r benchmark
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jamborm at gcc dot gnu.org, marxin at gcc dot gnu.org,
                    tnfchris at gcc dot gnu.org
  Target Milestone: ---

Created attachment 53985
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53985&action=edit
test-case

Noticed by Tamar and their testers using fancy parameters:

$ g++ -march=native -Ofast -flto=auto --param ipa-cp-eval-threshold=1 *.ii
-fprofile-use
during IPA pass: cp
lto1: internal compiler error: in operator>=, at profile-count.h:999
0x814bcc profile_count::operator>=(profile_count const&) const
        /home/marxin/Programming/gcc/gcc/profile-count.h:999
0x814bcc profile_count::operator>=(profile_count const&) const
        /home/marxin/Programming/gcc/gcc/profile-count.h:991
0x814bcc update_specialized_profile
        /home/marxin/Programming/gcc/gcc/ipa-cp.cc:5082
0x1be1689 perhaps_add_new_callers<tree_node*>
        /home/marxin/Programming/gcc/gcc/ipa-cp.cc:5932
0x1be1689 decide_about_value<tree_node*>
        /home/marxin/Programming/gcc/gcc/ipa-cp.cc:6038
0x1be40cc decide_whether_version_node
        /home/marxin/Programming/gcc/gcc/ipa-cp.cc:6190
0x1be5c02 ipcp_decision_stage
        /home/marxin/Programming/gcc/gcc/ipa-cp.cc:6388
0x1be5c02 ipcp_driver
        /home/marxin/Programming/gcc/gcc/ipa-cp.cc:6576
0x1be5c02 execute
        /home/marxin/Programming/gcc/gcc/ipa-cp.cc:6651

The issue is likely not new in GCC 13, but as it uses profile, I hasn'y
bisected that.

Reply via email to