https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99085
Bug ID: 99085
Summary: [11 Regression] ICE: verify_flow_info failed (error:
multiple hot/cold transitions found)
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: asolokha at gmx dot com
Target Milestone: ---
Target: x86_64-unknown-linux-gnu
gcc-11.0.0-alpha20210207 snapshot (g:3d912941f29c27b2ac7c79b9e7cb2f1150e75758)
ICEs when compiling the following testcase, reduced from
gcc/testsuite/c-c++-common/torture/builtin-clear-padding-4.c, w/ -O2
-fgraphite-identity -fsel-sched-pipelining -fselective-scheduling2:
void
foo (int m, int n, int o, int i)
{
long double a2[m];
int c2[n][o];
int j, k;
while (i < m)
a2[i++] = 13.132L;
for (j = 0; j < n; j++)
for (k = 0; k < o; k++)
c2[j][k] = 1;
__builtin_abort ();
}
% x86_64-unknown-linux-gnu-gcc-11.0.0 -O2 -fgraphite-identity
-fsel-sched-pipelining -fselective-scheduling2 -c euiuvzbp.c
euiuvzbp.c: In function 'foo':
euiuvzbp.c:16:1: error: multiple hot/cold transitions found (bb 15)
16 | }
| ^
euiuvzbp.c:16:1: error: multiple hot/cold transitions found (bb 11)
during RTL pass: stack
euiuvzbp.c:16:1: internal compiler error: verify_flow_info failed
0x965f92 verify_flow_info()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210207/work/gcc-11-20210207/gcc/cfghooks.c:269
0x97e2f9 checking_verify_flow_info
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210207/work/gcc-11-20210207/gcc/cfghooks.h:212
0x97e2f9 commit_edge_insertions()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210207/work/gcc-11-20210207/gcc/cfgrtl.c:2115
0xd71ff0 convert_regs
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210207/work/gcc-11-20210207/gcc/reg-stack.c:3270
0xd71ff0 reg_to_stack
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210207/work/gcc-11-20210207/gcc/reg-stack.c:3374
0xd71ff0 rest_of_handle_stack_regs
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210207/work/gcc-11-20210207/gcc/reg-stack.c:3429
0xd71ff0 execute
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210207/work/gcc-11-20210207/gcc/reg-stack.c:3461