From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7C751384AB47; Fri, 3 May 2024 08:09:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C751384AB47 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714723793; bh=EvXyADWlj+H5Z3VWODp5D2KIMsZwYlPEH80qWzsm6zI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WYsl1KexnfSnkdhFszp09cc/mlmH0aRafy12TIOCSnkAhgASyohfOhunlEmHOAkCo CZMqFYXsie4sLi5ahHTHbK1mtPE64iyFjjHXfGy3QEO94pswk5ZsnZJu08oqw2wEAr 8FTdQriPYQ/0YqVYD6fQeNXuq6RpbvKLYlgdN9ZE= From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114932] Improvement in CHREC can give large performance gains Date: Fri, 03 May 2024 08:09:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris 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=3D114932 --- Comment #3 from Tamar Christina --- (In reply to Andrew Pinski from comment #2) > > which is harder for prefetchers to follow. >=20 > This seems like a limitation in the HW prefetcher rather than anything el= se. > Maybe the cost model for addressing mode should punish base+index if so. > Many HW prefetchers I know of are based on the final VA (or even PA) rath= er > looking at the instruction to see if it increments or not ... That was the first thing we tried, and even increasing the cost of register_offset to something ridiculously high doesn't change a thing. IVopts thinks it needs to use it and generates: _1150 =3D (voidD.26 *) _1148; _1152 =3D (sizetype) l0_78(D); _1154 =3D _1152 * 324; _1156 =3D _1154 + 216; # VUSE <.MEM_421> vect__349.614_1418 =3D MEM [(integer(kin= d=3D4)D.9 *)_1150 + _1156 * 1 clique 2 base 0]; Hence the bug report to see what's going on.=