https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83474
Bug ID: 83474 Summary: [8 Regression] ICE: in probability_in, at profile-count.h:1038 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: luis.machado at linaro dot org Target Milestone: --- Created attachment 42911 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42911&action=edit Reproducer testcase I ran into this ICE when attempting to build CPU2017's 502.gcc_r/602.gcc_s benchmarks with loop array prefetching enabled on aarch64 and GCC 8. It also happens on x86 if that optimization is enabled. At this time i don't have data on which exact commit caused this failure, but some investigation shows the following commit added the assertion that is triggering the ICE in probability_in. commit 205ce1aa3b50814847900daf8d9ef78b30270a97 Author: hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Fri Nov 3 15:42:30 2017 +0000 Output of 'gcc -v' Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --enable-languages=c,c++ Thread model: posix gcc version 8.0.0 20171218 (experimental) (GCC) To reproduce: gcc -c -S testcase.i -O3 -fprefetch-loop-arrays