From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E33933858D39; Mon, 5 Jun 2023 03:11:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E33933858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685934676; bh=shwjW8WbWcRv6Kc9lAmCgFkDtbxgpFgaFY83Kv9Dfjg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZU63mxYQha7wbbtArxCU2Vi44JMGCabWhZ8b9m2nk4kssAjgJiJi1SM+VYm1LFk9y QWeeIWk1TL0HvUF7IQdoGUEQ4XvfsxvkJuUVwGQlMvGD1AS0uTPmW8FLjoB2DVC5mw jMGpNLBV5X6NbAajWTInht1a47ovRoXgQ+gogBPY= From: "yongxiangng at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/110057] Missed devirtualization opportunities Date: Mon, 05 Jun 2023 03:11:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: yongxiangng at gmail dot com 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: cc attachments.created 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=3D110057 Ng YongXiang changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yongxiangng at gmail dot c= om --- Comment #7 from Ng YongXiang --- Created attachment 55256 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55256&action=3Dedit Arrays should do non virtual lookup when destructing individual elements This is a draft patch outlining a possible solution to call non virtual destructor of elements when arrays are destructed (clang already does this,= see https://godbolt.org/z/f33Gh5EGM).=