From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 527BE3858CD1; Thu, 23 May 2024 09:24:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 527BE3858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716456297; bh=uM/oKyBC5DQELqznSI+h8y9jT8Vo832dEey7RdSdspg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y+Ldgg54HLFHdX6iiZ2n5jowczQvJUai0c2GY9zo3gFI2weGaAqujzeXtysM1Inz0 GGUIqPaHzCr4X03kYSmqZojqYqT6AYmoNVX0OXmKhdiEFk8sjNZo/lVRhXinKJvqfY L+W01oOwXGlhDK3xwiyyxWKGIyKPToo/f6SP1ZEw= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115138] [15 Regression] Bootstrap compare-debug fail after r15-580-gf3e5f4c58591f5 Date: Thu, 23 May 2024 09:24:55 +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: 15.0 X-Bugzilla-Keywords: build, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 15.0 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=3D115138 --- Comment #22 from Richard Biener --- Yes! Testing a fix for int foo (int) {} int bar (int) {} typedef int (*pred)(int); int x, y; pred A () { if (x) return foo; else return bar; } pred B () { if (y) return foo; else return bar; } int __attribute__((noipa)) baz() { pred a =3D A(); pred b =3D B(); if (a !=3D b) return 42; return 0; } int main() { if (baz () !=3D 0) __builtin_abort (); y =3D 1; if (baz () !=3D 42) __builtin_abort (); return 0; }=