From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 485493858CDB; Fri, 3 Nov 2023 17:14:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 485493858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699031653; bh=Uq9o0EUPageGTyRJrrW8hI5859YSXmKyXmezWR37ZAw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WcrhELVcC/Ah6IDn+rnI3f8FWy99VJ9WH5LzZ9rDgemPfqQ29V3gNSXFl8LxEY7vz 9ogc2LfzU2YRCghgS0TaovSoelFrCbFvDxPYgp/IJyPcTM+SQuZAnfkCnnJVwnOLp5 d3PSZ3Lx69BUc6Rp7K0/ijaPXQrnDNoJ0utbFGJY= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111766] Missed optimization with __builtin_unreachable and ands Date: Fri, 03 Nov 2023 17:14: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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D111766 --- Comment #2 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:7ab79a40b546a1470abaf76bec74c63e9990fe47 commit r14-5110-g7ab79a40b546a1470abaf76bec74c63e9990fe47 Author: Andrew MacLeod Date: Wed Oct 25 09:46:50 2023 -0400 Adjust operators equal and not_equal to check bitmasks against constants Check to see if a comparison to a constant can be determined to always be not-equal based on the bitmask. PR tree-optimization/111766 gcc/ * range-op.cc (operator_equal::fold_range): Check constants against the bitmask. (operator_not_equal::fold_range): Ditto. * value-range.h (irange_bitmask::member_p): New. gcc/testsuite/ * gcc.dg/pr111766.c: New.=