From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A361E3858D37; Wed, 28 Jun 2023 21:30:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A361E3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687987813; bh=cc4HFJYUMJxCGgyLU9Q5LCRWOOi/BCMfl7XZrvGyyRM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a3YycnySVlxz61DgWiZYdP9wPTu4OpZY4j1kWaIMYA/aUFvgP5vDYPhff3PxELYoV pWLaWRhJVvvICvnLw2nehVVujtf3nxS6aCbVzjPXJ1tT8TJ+o8minP+ufXvBpzGKGR /tDgcXy2lLjXoMx1YFLFly2wwrnL9tqVHamMXYOQ= 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: Wed, 28 Jun 2023 21:30:12 +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 #9 from Jan Hubicka --- bug 25623 comment #1 is different since __builtin_abort makes initial guess= ed profile inconsistent with the correlated conditionals. That is reason why I added explicit __builtin_expect_with_probability to ma= ke the profile consistent. This is bug that got in after one of several thread= ing rewrites.=