From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6CB2B3858C33; Wed, 21 Sep 2022 05:00:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CB2B3858C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663736432; bh=NrOXMrTgqi92GY2xEVRs9jqX8lJQpY41/Cpt9BeytGE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CLPRaD50sRQXFu2nfzr5Ojx/WtyQGa4m4YNASynZIdst3iGgMU1lC3zUyKE8wepKf 0EI/+Bo00Cq78bobIOqGmGQ/zG4dAPbV9Q7qHgj2lQ0sbnbwsl/XCjpg3hw5XJEoy0 zb26n1dU6fQVAk08mvt3xMF9hFfO0BE2DaPb3/x0= From: "hiraditya at msn dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87628] Redundant check of pointer when operator delete is called Date: Wed, 21 Sep 2022 05:00:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: hiraditya at msn dot com 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=3D87628 --- Comment #4 from AK --- Seems like clang now added the check: $ clang++ -Oz -fno-exceptions if_delete(char*): # @if_delete(char*) test rdi, rdi jne operator delete(void*)@PLT # TAILCALL ret=