From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BBA5F3858C2D; Wed, 31 Aug 2022 11:33:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BBA5F3858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661945625; bh=Db1BfUo+z8+0/3iLBLn+lASQXYNw7eIkZGKtep0ReiY=; h=From:To:Subject:Date:From; b=H6A+xBIUWNcglxckChCIwpO7tgQ9v0u+M8kfzAlJQJjQKjZQvnR4GJVXc8bW54M6c 1z+7nnKR2ZXfxdXufYWQH+4Q/Kser/uUis7sDLBdy095S1VdvRtY3ZhOxmnOLsRpSS Xj40axSR+w8LtUEHJk7aoc9pZGtaLlncD+eCij/U= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106787] New: ICE in vect_schedule_slp_node, at tree-vect-slp.cc:8648 Date: Wed, 31 Aug 2022 11:33:45 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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 cc target_milestone attachments.created 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106787 Bug ID: 106787 Summary: ICE in vect_schedule_slp_node, at tree-vect-slp.cc:8648 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: rsandifo at gcc dot gnu.org Target Milestone: --- Created attachment 53524 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53524&action=3Dedit gcda file Seen in 511.povray_r benchmark when run with PGO: $ g++ matrices.ii -Ofast -march=3Dskylake -fprofile-use -c -w during GIMPLE pass: slp matrices.ii: In function 'void pov::MTimesB(double (*)[4], double (*)[4])': matrices.ii:4:6: internal compiler error: in vect_schedule_slp_node, at tree-vect-slp.cc:8648 4 | void MTimesB(MATRIX matrix1, MATRIX result) { | ^~~~~~~ 0x9085a4 vect_schedule_slp_node /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:8648 0x155ce23 vect_schedule_scc /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:9018 0x155cb58 vect_schedule_scc /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:8999 0x155d450 vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr> const&) /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:9135 0x155e93f vect_slp_region /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:7387 0x155ff2c vect_slp_bbs /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:7499 0x15601b3 vect_slp_function(function*) /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:7587 0x15697d9 execute /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1532 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. $ cat matrices.ii typedef double MATRIX[][4]; double MTimesB_t0, MTimesB_t1, MTimesB_t2, MTimesB_t3; namespace pov { void MTimesB(MATRIX matrix1, MATRIX result) { MTimesB_t0 =3D result[0][3]; MTimesB_t1 =3D result[1][3]; MTimesB_t2 =3D result[2][3]; MTimesB_t3 =3D result[3][3]; result[2][3] =3D matrix1[2][0] * MTimesB_t0 + matrix1[2][1] * MTimesB_t1 + matrix1[2][2] * MTimesB_t2 + matrix1[2][3] * MTimesB_t3; result[3][3] =3D matrix1[3][0] * MTimesB_t0 + matrix1[3][1] * MTimesB_t1 + matrix1[3][2] * MTimesB_t2 + matrix1[3][3] * MTimesB_t3; } } // namespace pov=