From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 157C838923D3; Thu, 15 Dec 2022 15:06:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 157C838923D3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671116818; bh=Ept9/bxgxuMu/CRIVMRhmvREmfSI2g37Bzb1oeuRC1A=; h=From:To:Subject:Date:From; b=Uh/JdsWVKVbS1RhcN2qgsoyJJ8fxPD0VOQz7VQvFuRCWUmw3u+1Nwa/ZjdjaBnJoF XtnhebtR1hVgol+2MGU9WNgc0RGy5iLLRCveGo7bjwdtSgp0lKDnETcnoVLp2EhbYc z1wFaO9ULgKf6sOpPRvH7zJ5nFCw+Hcd2DOhdVY4= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108129] New: nop_atomic_bit_test_and_p is too bloated Date: Thu, 15 Dec 2022 15:06:57 +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: amonakov 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=3D108129 Bug ID: 108129 Summary: nop_atomic_bit_test_and_p is too bloated Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: amonakov at gcc dot gnu.org Target Milestone: --- match.pd has multi-pattern matcher 'nop_atomic_bit_test_and_p'. It expands to ~38 KLOC in gimple-match.cc and ~350 KB in the compiled binar= y. There has to be a better way than repeatedly emitting the match pattern for each member of {ATOMIC,SYNC}_FETCH_{AND,OR_XOR}_N :)=