From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D450E385AC2B; Fri, 17 Nov 2023 12:07:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D450E385AC2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700222859; bh=IkWXvQeilQiLqO2LrNg/MwmgWVcT5PfsbtYU9x2rtu0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KVFW33haLMcIewApzpNbURwRwIabGGv67LfCNJAEIbS2fPGiUCQdGBjzrY7IHoxrj Of3IwJVPXDT8KeSeHqalDm9n7k5zacbzKvp0/TEK6TLgx8bayeq5+My3ilAeXgVoVh WBKvNUFJbwY/OlY7uBK717N21yB7gF88iwfnhZKM= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111657] Memory copy with structure assignment from named address space should be improved Date: Fri, 17 Nov 2023 12:07:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.3.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D111657 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #8 from Jakub Jelinek --- I'd say it is a user error to invoke memcpy/memset etc. with pointers to non-default address spaces, and for aggregate copies the middle-end should ensure that the copying is not done using library calls; is that the case a= nd the problem was just that optab expansion was allowed for the structure cop= ies and the backend decided to use libcall in that case?=