From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8AC603858D33; Thu, 23 Nov 2023 21:21:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8AC603858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700774500; bh=UC26sMMY10prL5eHzeEe3hiJWQhMZ8a58KoEhkavZUY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tSTzRccM0RR0GfpDwwBqrjLAdyrHtCLdp2pvRneKizKFmEUomw9J/57XAoxL8CGaC 8RUMWah3zLT14wwFjLR9eA9WoTXLyvXEI14erb3Mkypu5gRODZXdMiPofkUxSSenvT mGq0mIgaGNRoHHK+uyNo4cHnJ1cPz/cdSZLqlyss= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/112683] Optimizing memcpy range by extending to word bounds Date: Thu, 23 Nov 2023 21:21:40 +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: 14.0 X-Bugzilla-Keywords: missed-optimization 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: component 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=3D112683 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Component|target |middle-end --- Comment #1 from Andrew Pinski --- # RANGE [irange] long unsigned int [1, 16] MASK 0x1f VALUE 0x0 _2 =3D _1 + 1; # PT =3D nonlocal=20 _3 =3D &__str_5(D)->_M_local_bufD.4676; # .MEM_7 =3D VDEF <.MEM_6> memcpyD.1403 (&._M_local_bufD.4676, _3, _2); The range information is there already for _2. Note the hugely expanded out instructions is a target issue though.=