From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D9C0D3858D1E; Sun, 31 Dec 2023 21:15:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D9C0D3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704057352; bh=b+4OgWu8sifV+p++1THnTSk+j2hu3qnCFzbzvot6XrE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cOrlpnOIEjQi/z8KFF3XqzNwD1kfCKQx5M0guRHTxUeDpQKwhYmmBEYMvY+ZTh46z 5WCGbSNas/k+6svu84+XuEm5BPBNRv5bqfCFpjWF8Qq7yEGY43Or2dvnM5Li1Wa4Lk xce6GfhvsmK/kIWb3o01YaTyRxWPZbLMFVGnjylQ= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113186] [13/14 Regression] `(a^c) & (a^!c)` is not optimized to 0 for bool Date: Sun, 31 Dec 2023 21:15:52 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.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=3D113186 --- Comment #2 from Andrew Pinski --- Note for `~a !=3D b` (for boolean size) we should just convert that into: `= a =3D=3D b` . And then we would have the form for both C++ and C at -O1 in forwprop1 .=