From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4E4893857711; Fri, 28 Apr 2023 09:07:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E4893857711 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682672856; bh=oSwjj5fsFacnsdyN8djwxh56XM/QauncsmdXz0U7gng=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tlCS9u+YvCG6VDe8RP+i9MFr1iB8/j+15ybIClBdYP82T0Fy3B5iznYn9JQ26/Sm6 Iuv0QHeG6gMQB11GmuloowiHN32wD5lFd/2mJMXEyZeynFGC+TegkKjAww529gWn6O ws/dy4gcLSbWPYJE9vtEt9YwMqpUUoyJLL0hcpjA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108752] word_mode vectorization is pessimized by hard limit on nunits Date: Fri, 28 Apr 2023 09:07:32 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth 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=3D108752 --- Comment #4 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:821ef93976e750c118d42a2ad33b96dbd1b9f3a5 commit r14-322-g821ef93976e750c118d42a2ad33b96dbd1b9f3a5 Author: Richard Biener Date: Fri Feb 10 13:09:10 2023 +0100 tree-optimization/108752 - vectorize emulated vectors in lowered form The following makes sure to emit operations lowered to bit operations when vectorizing using emulated vectors. This avoids relying on the vector lowering pass adhering to the exact same cost considerations as the vectorizer. PR tree-optimization/108752 * tree-vect-generic.cc (build_replicated_const): Rename to build_replicated_int_cst and move to tree.{h,cc}. (do_plus_minus): Adjust. (do_negate): Likewise. * tree-vect-stmts.cc (vectorizable_operation): Emit emulated arithmetic vector operations in lowered form. * tree.h (build_replicated_int_cst): Declare. * tree.cc (build_replicated_int_cst): Moved from tree-vect-generic.cc build_replicated_const.=