From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 310363857C50; Thu, 4 Mar 2021 23:29:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 310363857C50 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/99394] s254 benchmark of TSVC is vectorized by clang and not by gcc Date: Thu, 04 Mar 2021 23:29:19 +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:29:19 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99394 --- Comment #1 from Jan Hubicka --- Here we fail with: tsvc.c:1526:27: note: vect_is_simple_use: operand x_30 =3D PHI <_2(8), x_18(3)>, type of def: unknown tsvc.c:1526:27: missed: Unsupported pattern. tsvc.c:1527:26: missed: not vectorized: unsupported use in stmt. tsvc.c:1526:27: missed: unexpected pattern. { int i; int nl; real_t x; static const char __func__[5] =3D "s254"; struct timeval * _1; float _2; float _3; float _4; struct timeval * _5; real_t _17; unsigned int ivtmp_27; unsigned int ivtmp_28; unsigned int ivtmp_29; unsigned int ivtmp_35; [local count: 108459]: initialise_arrays (&__func__); _1 =3D &func_args_13(D)->t1; gettimeofday (_1, 0B); [local count: 10737416]: # nl_31 =3D PHI # ivtmp_28 =3D PHI x_18 =3D b[31999]; [local count: 1063004409]: # x_30 =3D PHI <_2(8), x_18(3)> # i_32 =3D PHI # ivtmp_35 =3D PHI _2 =3D b[i_32]; _3 =3D _2 + x_30; _4 =3D _3 * 5.0e-1; a[i_32] =3D _4; i_22 =3D i_32 + 1; ivtmp_29 =3D ivtmp_35 - 1; if (ivtmp_29 !=3D 0) goto ; [98.99%] else goto ; [1.01%] [local count: 1052266996]: goto ; [100.00%] ....=