From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 74FB33882642; Fri, 30 Jun 2023 16:22:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74FB33882642 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688142162; bh=04cNULOlACvonuzkKmZRZxihv4E+K3hmR1F+e3GGbJM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Po64lvYrl39niwKz+C3PXUme8HuL+9/PDMxg3nePZFrXIqU/ZYLciUnaUriHMk9Pd CZzfK6n4jkOBCR1KMFTA05dbIgXfgVP83FNQ3ntT5/+gm7pT0zCZvXiHrtzRSuTCE2 C3Mscwb20SR7HVshCVyxERkTdqdbmRa+wqw2vrU8= From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103680] Jump threading and switch corrupts profile Date: Fri, 30 Jun 2023 16:22:41 +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: internal-improvement, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka 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: --- 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=3D103680 --- Comment #11 from Jan Hubicka --- The following are passes affecting mismatches for tramp3d -O3 build: 107t cunrolli | 85 +77=20=20 110t forwprop | 87 +2=20=20 113t fre | 151 +64=20 115t threadfull | 474 +323=20 116t vrp | 379 -95=20 127t ch | 3106 +2729 130t thread | 3166 +60 131t dom | 3036 -130 159t cddce | 3146 +109 195t fre | 1232 +10 196t thread | 1259 +27 197t dom | 1249 -10 199t threadfull | 1275 +26 200t vrp | 1264 -11 211t cddce | 1264 +14 264r cprop | 1174 +13 275r loop2_unroll | 1180 +8 312r pro_and_epilogue | 1204 +21 315r jump2 | 1245 +41 So jump threading still produces mismatches, but I will need to look more if these are really conflicting profiles or another updating bug. Not sure what happens in ch.=