From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 91CDE3858D38; Wed, 12 Jul 2023 07:42:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 91CDE3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689147731; bh=jFXTYHBT0LZQb7GJ9e1ef46wyoXyk+ZEBB4beMR+ZP0=; h=From:To:Subject:Date:From; b=oMe0jE9KUHkonmVOICQX2vMnwvkIgqedzlhnzthRIyuLKkO/y7JRBAFlPYGKGK4Nq 52BdfWPRU3CL5E4FgWrhDV8aoC3rFGN8AX+wkp4elP3GvY1LxhUXv8oIuCTIBal8fb Ef0/6c3wZgiDbEJhtDEnZ1hZjTQyb7WLUr7o1rjk= From: "zhongyunde at huawei dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/110638] New: [13 regression] memcpy should be inlined with sve loop Date: Wed, 12 Jul 2023 07:42:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhongyunde at huawei 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D110638 Bug ID: 110638 Summary: [13 regression] memcpy should be inlined with sve loop Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zhongyunde at huawei dot com Target Milestone: --- * test:https://gcc.godbolt.org/z/39KddjbE4 ``` void va(struct args_t * func_args) { for (int nl =3D 0; nl < iterations; nl++) { for (int i =3D 0; i < LEN_1D; i++) { a[i] =3D b[i]; } dummy(a, b); } return ; } ``` * gcc12: don't transform the loop into a memcpy call, so it can make use of= the new sve feature. * gcc13: use a normal 'bl memcpy' The above regression start from gcc13.=