From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C2AEF385840D; Wed, 31 Jan 2024 03:50:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C2AEF385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706673016; bh=YOEraYJx0irnbw0drIGhp9o3RZx6WulF9DyV0jCMy9E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=F0JnRiTddCc/YoU4B6Rj3swrlK4sW8tMG2NA7SHfAL91nxciqwEBGCiBs2EL6XIN5 +yWh3M8R8AHlTyKnDX5TySAvdAH4yusVb2mzbiPwporuQUs877rJhvlG68rwTn2JB/ LMmIS2ayEOuAN2kQ1mYFi1SxqEDVTX2f/H/51jqg= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/99395] s116 benchmark of TSVC is vectorized by clang and not by gcc Date: Wed, 31 Jan 2024 03:50:16 +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: 11.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: juzhe.zhong at rivai dot ai 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D99395 --- Comment #11 from JuzheZhong --- It seems that we should fix this case (Richard gave) first which I think it= 's not the SCEV or value-numbering issue: double a[1024]; void foo () { for (int i =3D 0; i < 1022; i +=3D 2) { double tem =3D a[i+1]; a[i] =3D tem * a[i]; a[i+1] =3D a[i+2] * tem; } } auto.c:13:21: missed: couldn't vectorize loop auto.c:15:14: missed: not vectorized: no vectype for stmt: tem_10 =3D a[_1]; scalar_type: double=