From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9F48E383E827; Mon, 29 Jun 2020 12:09:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F48E383E827 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593432568; bh=Vpw/+WKOM1G0+1xA/Sm3h8eslE5Os4pmJyKfjUskxdY=; h=From:To:Subject:Date:From; b=axoYkPqgCiNPr9yUCxvS0vYZ/FPEocUjzKp8uPDddh2YRN/J2JpW0pXQbDEUpnn6U IbkluRt/WUiRPxcrFQNKve1i9D1DR8aiNhiNDd8TnLJdylkg4g3snLe2teYg2iXv5H VE90S/EGWBeqs4RjmJokk6dok4thKc6ow7cCcqjU= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95960] New: GCC should re-vectorize vector code with larger VF Date: Mon, 29 Jun 2020 12:09:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Mon, 29 Jun 2020 12:09:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95960 Bug ID: 95960 Summary: GCC should re-vectorize vector code with larger VF Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- For the following simple case GCC should vectorize it using AVX: typedef double __attribute__((vector_size(16))) v2df; double a[4]; double b[4]; void f() { *(v2df *)&b[0] +=3D *(v2df *)&a[0]; *(v2df *)&b[2] +=3D *(v2df *)&a[2]; } Similar opportunities may exist for loops where also Neon -> SVE transforms may be profitable. Starting with BB vectorization might be easier since you only need to consider SLP.=