From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7AD0E3841455; Mon, 25 Jul 2022 09:46:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7AD0E3841455 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106433] [13 Regression] ICE in vect_transform_loops, at tree-vectorizer.cc:1032 Date: Mon, 25 Jul 2022 09:46:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc cf_reconfirmed_on keywords target_milestone bug_status everconfirmed Message-ID: In-Reply-To: References: 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: Mon, 25 Jul 2022 09:46:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106433 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org, | |jakub at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Last reconfirmed| |2022-07-25 Keywords| |openmp Target Milestone|--- |13.0 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Confirmed. It looks like bar.simdclone.0 () is not pure but bar () was pur= e, so sth is amiss in the simd cloning pass here? We have vector(2) int foo.simdclone.0 () { ... # VUSE <.MEM_7> _1 =3D bar (0); but at IPA we don't yet know bar() is pure (its IL writes to memory). Like= ly late local pure/cost discovery fixes that up and affects foo.simdclone.0 but the simdclone decl for bar() is created earlier (but not adjusted?). Should local-pure-const also affect aliases/clones (are the simdclone clones even visible properly to do this?). I guess simply adjusting the simdclone decl from the vectorizer when detect= ing the mismatch in virtual operands is too ugly. vector(2) int foo.simdclone.0 () { ... # .MEM =3D VDEF <.MEM_7> vect__1.39_12 =3D bar.simdclone.0 (vect_cst__11);=