From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 670E83857C41; Wed, 26 Oct 2022 19:44:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 670E83857C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666813471; bh=1GheRfMDai1XhcgQ/1KAXQkpDIvoZNxkqqRhyXe4hwk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VR2PZlrHbN77jilx2yZpbrbE8XVFlTluyy5cU7AeNU1TvB09yUyMF7NlrNwE3OyLT 2KFssH9ZUO7T+taIuLLFBtCpRlkm42uASRXiEsMYVXxC85ZRT6BcDDbt2L4R4gHmMX clK/1g1SJYNWdMfLkhEN7j3WNjPKjuP/8OrOtAMA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/79469] Feature request: provide `__builtin_assume` builtin function to allow more aggressive optimizations and to match clang Date: Wed, 26 Oct 2022 19:44:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia 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: 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=3D79469 --- Comment #4 from Andrew Pinski --- Now the assume for C++23's assume attribute has been added, adding this bui= ltin should be straight forward I think. Because the builtin is exactly the same as the attribute in that the expres= sion supplied to the builtin would not execute for side effects.=