From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7A05F385841C; Mon, 29 Nov 2021 14:36:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A05F385841C From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103409] [12 Regression] 18% SPEC2017 WRF compile-time regression with -O2 -flto since r12-5228-gb7a23949b0dcc4205fcc2be6b84b91441faa384d Date: Mon, 29 Nov 2021 14:36:36 +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: 12.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org 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: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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 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 Nov 2021 14:36:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103409 --- Comment #10 from Aldy Hernandez --- Created attachment 51896 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D51896&action=3Dedit untested patch The threading slowdown here is due to the ssa_global_cache temporary. It doesn't look like ssa_global_cache was meant to be lightweight temporary ca= che ;-). We can avoid the temporary altogether by using the bitmap already used to determine if a cache entry is available. With this (untested) patch the ltrans42 unit is back to: tree VRP : 13.70 ( 3%) 0.04 ( 2%) 13.71 ( = 3%) 45M ( 4%) backwards jump threading : 13.22 ( 3%) 0.01 ( 0%) 13.26 ( = 3%) 3609k ( 0%)=