From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0BC8C3858402; Tue, 14 Sep 2021 11:05:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0BC8C3858402 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/102324] New: ICE in initialize_matrix_A, at tree-data-ref.c:3959 Date: Tue, 14 Sep 2021 11:05:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2021 11:05:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102324 Bug ID: 102324 Summary: ICE in initialize_matrix_A, at tree-data-ref.c:3959 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ktkachov at gcc dot gnu.org Target Milestone: --- The AArch64 SVE ACLE testcase below #include svint8_t doit(svbool_t ptrue, svint8_t m0) { auto combine_low =3D [&ptrue]( svint8_t in) -> svint8_t { int8_t data [2000]; svst1(ptrue, (int8_t *)data, in); for (int _i =3D (int)svcntb()/2; _i < (int)svcntb(); ++_i) data[_i] =3D data[_i-(int)svcntb()]; in =3D svld1(ptrue, data); return in; }; return combine_low(m0); } ICEs with -march=3Darmv8-a+sve -O2=20 ice.cc: In lambda function: ice.cc:4:5: internal compiler error: in initialize_matrix_A, at tree-data-ref.c:3959 4 | [&ptrue]( svint8_t in) -> svint8_t { | ^ 0x1ed2988 initialize_matrix_A $SRC/gcc/tree-data-ref.c:3959 0x1ed2965 initialize_matrix_A $SRC/gcc/tree-data-ref.c:3929 0x1ed8454 analyze_subscript_affine_affine $SRC/gcc/tree-data-ref.c:4361 0x1edb8fd analyze_siv_subscript $SRC/gcc/tree-data-ref.c:4703 0x1edb8fd analyze_overlapping_iterations $SRC/gcc/tree-data-ref.c:4933 0x1edb8fd subscript_dependence_tester_1 $SRC/gcc/tree-data-ref.c:5487 0x1edc10c subscript_dependence_tester $SRC/gcc/tree-data-ref.c:5537 0x1edc10c compute_affine_dependence(data_dependence_relation*, loop*) $SRC/gcc/tree-data-ref.c:5597 0x118ea4d loop_distribution::get_data_dependence(graph*, data_reference*, data_reference*) $SRC/gcc/tree-loop-distribution.c:1379 0x118eaba loop_distribution::data_dep_in_cycle_p(graph*, data_reference*, data_reference*) $SRC/gcc/tree-loop-distribution.c:1398 0x118ed49 loop_distribution::update_type_for_merge(graph*, partition*, partition*) $SRC/gcc/tree-loop-distribution.c:1441 0x118f927 loop_distribution::build_rdg_partition_for_vertex(graph*, int) $SRC/gcc/tree-loop-distribution.c:1485 0x118fb51 loop_distribution::rdg_build_partitions(graph*, vec, vec*) $SRC/gcc/tree-loop-distribution.c:1938 0x1191c19 loop_distribution::distribute_loop(loop*, vec const&, control_dependences*, int*, bool*, bool) $SRC/gcc/tree-loop-distribution.c:2984 0x11940f8 loop_distribution::execute(function*) $SRC/gcc/tree-loop-distribution.c:3353 0x119508d execute $SRC/gcc/tree-loop-distribution.c:3441 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=