From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ECC7C3948A77; Wed, 6 May 2020 14:55:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ECC7C3948A77 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588776921; bh=ISBPc3x6D9g6gMjPAYY0UQzM7Q8Cdm+yw6GTRhzx9oA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vn7McHCrcBLzP79q3zkpP0p2qU1u6KN0KviWfQnVVhsLQgmEduuz8QPu4PyX5bh9J 2C7oSwMyP3aQ2heZBsIdGjp5UHT0hx4z7sDFIqKciSpnL9FbBXpmQp5wrTOgCfjnnt gr4YKhOOIDhRt1FpmUPvf2c0vUON9QygleuND8+Q= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94877] Failure to simplify ~(x + 1) to -2 - x Date: Wed, 06 May 2020 14:55:21 +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: 10.0 X-Bugzilla-Keywords: easyhack, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2020 14:55:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94877 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- I'm not sure why this is considered a simplification, two insns vs. two, an= d on the subtraction it isn't specific to just one target, but I think for most = the constant will need to be forced into register, the immediates the instructi= ons have is mostly for the second operand.=