From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BAEDF3858D28; Fri, 10 Feb 2023 11:24:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BAEDF3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676028270; bh=Ef3naMovnsCj0AoG3a+uwXUL2431Ujt2dOrgkZFMwgA=; h=From:To:Subject:Date:From; b=SIcda8qhU5hrKrqC8A0yI1GmVMoMs/sNZrbCfKC7B8alvmWwxfnTB3i6RKVen06RL 46P8vjl95mCEtcOMNgiaO2I5WdN4XyLlD3n/Ul+F22gmdgzxSJIlHfyDPFItaaK02U LRsbEgO5p0cg4R6FAvZQbr2kqFp1mA/e+vZICpRs= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108752] New: word_mode vectorization is pessimized by hard limit on nunits Date: Fri, 10 Feb 2023 11:24:30 +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: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108752 Bug ID: 108752 Summary: word_mode vectorization is pessimized by hard limit on nunits Product: gcc Version: 13.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: --- r13-5771-gdc87e1391c55c6 re-introduced a hard nunits limit to the vectorizer when using emulated vectors (aka word_mode vectorization). That's because this feature relies on vector lowering to implement plus, minus and negate with bit operations and that has such limit in place for when dealing with user written code that didn't have any cost modeling applied. The fix is to emit supported operations from the vectorizer.=