From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 59658385842C; Tue, 31 Jan 2023 04:52:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 59658385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675140764; bh=lp1C3uAIzUdWVvKKpH1Els2b2y/7SjsKIePARyRhkUk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IotnTeRxU6+rBYCrW1OkFGt8EpZ6sqJVoBJrmLpyHH+nWv49P9OqEV2cNMH3c2NeH jtuabSlYh1S6HVAssfl4oN/BOIm4Er8RW6+PiZyUYOsm2DrP3fbCoSN6tQyhnUqjHs 4CLDacnskPX2/JAZEvwTb/BdGDPa4nwrm/Eu/LPo= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108354] [13 Regression] Dead Code Elimination Regression at -O2 since r13-89-gb3e98eb3396e16 Date: Tue, 31 Jan 2023 04:52:43 +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: 13.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: 13.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=3D108354 --- Comment #2 from Andrew Pinski --- This is a specific case of PR 91213 and the case which will also fix PR 969= 21: /* 1 - a is a ^ 1 if a had a bool range. */ (simplify (minus integer_onep@0 SSA_NAME@1) (if (INTEGRAL_TYPE_P (type) && ssa_name_has_boolean_range (@1)) (bit_xor @1 @0)))=