From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14255 invoked by alias); 15 May 2019 18:03:22 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 14247 invoked by uid 89); 15 May 2019 18:03:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 May 2019 18:03:21 +0000 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4FHuoNN165914 for ; Wed, 15 May 2019 14:03:19 -0400 Received: from e11.ny.us.ibm.com (e11.ny.us.ibm.com [129.33.205.201]) by mx0b-001b2d01.pphosted.com with ESMTP id 2sgmfktb2w-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 15 May 2019 14:03:19 -0400 Received: from localhost by e11.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 15 May 2019 19:03:18 +0100 Received: from b01cxnp23034.gho.pok.ibm.com (9.57.198.29) by e11.ny.us.ibm.com (146.89.104.198) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 15 May 2019 19:03:14 +0100 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x4FI3D0e32637354 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 May 2019 18:03:13 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8221A112062; Wed, 15 May 2019 18:03:13 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 29F56112065; Wed, 15 May 2019 18:03:13 +0000 (GMT) Received: from ragesh4.rchland.ibm.com (unknown [9.10.86.76]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 15 May 2019 18:03:13 +0000 (GMT) Subject: Re: Fixing inline expansion of overlapping memmove and non-overlapping memcpy To: Jakub Jelinek Cc: Michael Matz , Richard Biener , GCC Development , Joseph Myers , Jeff Law , Segher Boessenkool , David Edelsohn , Bill Schmidt References: <21ca63aa-3838-e2ae-bf6e-39ec1b98dca4@linux.ibm.com> <20190515163129.GL19695@tucnak> <70750ab4-d51a-0d52-41c2-9f8157016790@linux.ibm.com> <20190515180118.GM19695@tucnak> From: Aaron Sawdey Date: Wed, 15 May 2019 18:03:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190515180118.GM19695@tucnak> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit x-cbid: 19051518-2213-0000-0000-0000038F1A5C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00011102; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000285; SDB=6.01203772; UDB=6.00631887; IPR=6.00984698; MB=3.00026906; MTD=3.00000008; XFM=3.00000015; UTC=2019-05-15 18:03:17 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19051518-2214-0000-0000-00005E72A3C1 Message-Id: <6287e7ff-9124-932d-40ca-75b81eab50c0@linux.ibm.com> X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00123.txt.bz2 On 5/15/19 1:01 PM, Jakub Jelinek wrote: > On Wed, May 15, 2019 at 12:59:01PM -0500, Aaron Sawdey wrote: >> 1) rename optab movmem and the underlying patterns to cpymem. >> 2) add a new optab movmem that is really memmove() and add support for >> having __builtin_memmove() use it. >> >> Handling of the partial overlap case can be a separate piece of work. > > That 1) and 2) can be also separate pieces of work ;). Exactly -- make things as easy as possible when I go begging for reviewers :-) -- Aaron Sawdey, Ph.D. acsawdey@linux.vnet.ibm.com 050-2/C113 (507) 253-7520 home: 507/263-0782 IBM Linux Technology Center - PPC Toolchain