https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97816
Bug ID: 97816 Summary: [11 Regression] ICE in good_cloning_opportunity_p, at ipa-cp.c:3266 since r11-4949-gb86aedb0cc083efe712e530a723f1237051a6b56 Product: gcc Version: 11.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 Target Milestone: --- Created attachment 49554 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49554&action=edit test-case It's reduced from gcc SPEC2017 test: $ gcc -std=c99 -O3 -flto=1 -march=znver1 -g -fprofile-generate -fgnu89-inline -shared -fPIC reduced/*. ... during IPA pass: cp lto1: internal compiler error: in good_cloning_opportunity_p, at ipa-cp.c:3266 0x22cc3b2 good_cloning_opportunity_p /home/marxin/Programming/gcc/gcc/ipa-cp.c:3266 0x22d331a decide_about_value<tree_node*> /home/marxin/Programming/gcc/gcc/ipa-cp.c:5502 0x22d1cc4 decide_whether_version_node /home/marxin/Programming/gcc/gcc/ipa-cp.c:5573 0x22d25b9 ipcp_decision_stage /home/marxin/Programming/gcc/gcc/ipa-cp.c:5754 0x22d2e53 ipcp_driver /home/marxin/Programming/gcc/gcc/ipa-cp.c:5942 0x22d3014 execute /home/marxin/Programming/gcc/gcc/ipa-cp.c:6017 I'm reducing that more, but it goes very slowly.