From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C7C97385781C; Thu, 4 Mar 2021 23:24:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C7C97385781C From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/99395] s116 benchmark of TSVC is vectorized by clang and not by gcc Date: Thu, 04 Mar 2021 23:24:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka 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: 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: Thu, 04 Mar 2021 23:24:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99395 --- Comment #1 from Jan Hubicka --- Loop is: real_t s116 (struct args_t * func_args) { int i; int nl; static const char __func__[5] =3D "s116"; struct timeval * _1; int _2; float _3; float _4; float _5; int _6; float _7; float _8; float _9; int _10; float _11; float _12; float _13; int _14; float _15; float _16; float _17; int _18; float _19; float _20; float _21; struct timeval * _22; real_t _33; unsigned int ivtmp_43; unsigned int ivtmp_44; unsigned int ivtmp_45; unsigned int ivtmp_46; [local count: 108459]: initialise_arrays (&__func__); _1 =3D &func_args_29(D)->t1; gettimeofday (_1, 0B); goto ; [100.00%] [local count: 1052266996]: [local count: 1063004409]: # i_48 =3D PHI <_18(8), 0(5)> # ivtmp_46 =3D PHI _2 =3D i_48 + 1; _3 =3D a[_2]; _4 =3D a[i_48]; _5 =3D _3 * _4; a[i_48] =3D _5; _6 =3D i_48 + 2; _7 =3D a[_6]; _8 =3D a[_2]; _9 =3D _7 * _8; a[_2] =3D _9; _10 =3D i_48 + 3; _11 =3D a[_10]; _12 =3D a[_6]; _13 =3D _11 * _12; a[_6] =3D _13; _14 =3D i_48 + 4; _15 =3D a[_14]; _16 =3D a[_10]; _17 =3D _15 * _16; a[_10] =3D _17; _18 =3D i_48 + 5; _19 =3D a[_18]; _20 =3D a[_14]; _21 =3D _19 * _20; a[_14] =3D _21; ivtmp_45 =3D ivtmp_46 - 1; if (ivtmp_45 !=3D 0) goto ; [98.99%] else goto ; [1.01%] tsvc.c:275:18: missed: not vectorized, possible dependence between data-r= efs a[i_48] and a[_18] tsvc.c:274:27: missed: bad data dependence. _18 =3D i_48 + 5 and stride is 5...=