From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B7B73858414; Fri, 23 Jun 2023 19:57:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B7B73858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687550260; bh=622VEy1vWZd0Xhz9U610j0J6O3jlIg9hJR90Ze4tCkE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kkoEMGbM9wZBzQnFwbGXiFJCU8m3YcKHQfEqMXsg+xciRQLMT0BHN2vGiKxfsTTBi OlqL5Tdule/vNAiHJmUlFr4EQFOR9oCsFiFHitt7NWYxrWjjcTFmFZX3oHHsx5StBH cj6IxQt9zg5kuc/kK5DgNeEZ73QttnQDbRi33nf4= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110379] Unnecessary copies after early opts Date: Fri, 23 Jun 2023 19:57:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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=3D110379 --- Comment #2 from Andrew Pinski --- Plus this is basically the same as the following C code: ``` struct a { int t; }; void foo (struct a *); struct b { struct a f; }; void test(struct b *t) { foo(&t->f); } ```=