https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83581
Bug ID: 83581 Summary: [8 Regression] ICE in expand_LOOP_VECTORIZED, at internal-fn.c:2397 Product: gcc Version: 8.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: --- gcc-8.0.0-alpha20171217 snapshot (r255766) ICEs when compiling the following snippet w/ -O3 (-Ofast) -fno-tree-copy-prop -fno-tree-loop-im: int ag, mv, v7; int nk (int g1) { int *yw = &g1; while (ag < 1) { for (mv = 0; mv < 2; ++mv) { *yw += !!g1 + 1; yw = &v7; } ++ag; } return *yw; } % gcc-8.0.0-alpha20171217 -O3 -fno-tree-copy-prop -fno-tree-loop-im -c ybdz3a46.c during RTL pass: expand ybdz3a46.c: In function 'nk': ybdz3a46.c:4:1: internal compiler error: in expand_LOOP_VECTORIZED, at internal-fn.c:2397 nk (int g1) ^~ 0x61d137 expand_LOOP_VECTORIZED /var/tmp/portage/sys-devel/gcc-8.0.0_alpha20171217/work/gcc-8-20171217/gcc/internal-fn.c:2397 0x95f0c7 expand_call_stmt /var/tmp/portage/sys-devel/gcc-8.0.0_alpha20171217/work/gcc-8-20171217/gcc/cfgexpand.c:2587 0x95f0c7 expand_gimple_stmt_1 /var/tmp/portage/sys-devel/gcc-8.0.0_alpha20171217/work/gcc-8-20171217/gcc/cfgexpand.c:3613 0x95f0c7 expand_gimple_stmt /var/tmp/portage/sys-devel/gcc-8.0.0_alpha20171217/work/gcc-8-20171217/gcc/cfgexpand.c:3779 0x9604b2 expand_gimple_basic_block /var/tmp/portage/sys-devel/gcc-8.0.0_alpha20171217/work/gcc-8-20171217/gcc/cfgexpand.c:5797 0x964a86 execute /var/tmp/portage/sys-devel/gcc-8.0.0_alpha20171217/work/gcc-8-20171217/gcc/cfgexpand.c:6403