From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 877343858426; Sat, 7 Oct 2023 09:10:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 877343858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696669814; bh=z9t75tLWITsjuXk7XZvgwg6wM/H1EXzdOa47iiSglVQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qMq9T1xo+Ce1L2zEtNsSyPorWw2qVi5R2lGarih6f3MtNvtAIqGA7qL7LsCDR/HsE Nw5XkAh3ZTdrBuQMPi8F1xO5eg4GNsQ1rKQmc99nGlg7GfsrDbIrHFZXW46mrXwpSy xIDNjIJbxtYzgcnRct7Vp+YeOBer1GOKClxdUJpY= 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: Sat, 07 Oct 2023 09:10:06 +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: cc 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 JuzheZhong changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |juzhe.zhong at rivai dot ai --- Comment #6 from JuzheZhong --- Hi, Richi. Recently, I am evaluating TSVC performance of GCC: I found both RISC-V and aarch64 can SLP vectorize it: https://godbolt.org/z/ssvTxxjeT Both GCC-13 and trunk GCC can SLP it like LLVM (GCC-12 failed) but with -fno-vect-cost-model. I suspect we should adjust Vector COST model (I don't think we should ajust cost model in target backend since LLVM by default vectorize such case).=