From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1A9DE3858D1E; Fri, 10 Nov 2023 08:25:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A9DE3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699604700; bh=hgUaB12U0d5gtg/WWHEQt+YxCgEWKS3bgFalEcCvB7o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BxorlFBy145Ko35WhDnYXcOszA5d9zvCpLye6uUcoYE5e6nzXwvkRIIK5rLPf5fw0 xGst7p8HUx5IAVmBk7Ems8/H625/Ok/qjbHoeTGPh9D4nwsLcvJ3KTcjVAoEf/UMkb wuDNDM6zTQsu7La32uVRRtVNxHWjGGeoBelO2C88= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112464] [14 Regression] ICE avx512 with -ftrapv since r14-5076 Date: Fri, 10 Nov 2023 08:24:58 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code 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: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112464 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2023-11-10 Ever confirmed|0 |1 --- Comment #3 from Richard Biener --- (In reply to Robin Dapp from comment #2) > I tested >=20 > diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc > index a544bc9b059..257fd40793e 100644 > --- a/gcc/tree-vect-loop.cc > +++ b/gcc/tree-vect-loop.cc > @@ -7084,7 +7084,7 @@ vectorize_fold_left_reduction (loop_vec_info > loop_vinfo, > opmask, &vec_opmask); > } >=20=20 > - gimple *sdef =3D scalar_dest_def_info->stmt; > + gimple *sdef =3D vect_orig_stmt (scalar_dest_def_info)->stmt; >=20 > overnight on x86 and aarch64. This seems to help for the reduced testcas= e. >=20 > It appears as if we "look through" a statement pattern in > vect_finish_replace_stmt but not before when we replace the newly created > vector statement's lhs. Then the lhs is the statement pattern's lhs while > in vect_finish_replace_stmt we assert that it's from the statement the > pattern replaced. Hmm, that will only work if the orig stmt is the root of the pattern sequence. But otherwise it looks correct to me.=