From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 139183858412; Tue, 23 Jan 2024 10:29:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 139183858412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706005744; bh=QgNIrN6vHzJcyOhd5J/XFznf+4OAw704LYhdThJmb3M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jXdxKefN+U3iqK+7/KdPqaj9OQ+7hjr0cKBtht3beznHqeOidLqr5ZmpJlUkNQvXr yYuzmnlb86cqm9r3xKA3CujFObJ3sYdB8+bN5G27csbyJRCP8r9Ixtk22PTHFdu2wQ zd9rIgzQntYH7aG0z7dLWjLRVNHLBKwbY629ywEU= From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113441] [14 Regression] Fail to fold the last element with multiple loop Date: Tue, 23 Jan 2024 10:29:01 +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, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de 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: 14.0 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=3D113441 --- Comment #15 from rguenther at suse dot de --- On Tue, 23 Jan 2024, juzhe.zhong at rivai dot ai wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113441 >=20 > --- Comment #14 from JuzheZhong --- > I just tried again both GCC-13.2 and GCC-14 with -fno-vect-cost-model. >=20 > https://godbolt.org/z/enEG3qf5K >=20 > GCC-14 requires scalar epilogue loop, whereas GCC-13.2 doesn't. >=20 > I believe it's not cost model issue. As said, please try to bisect to the point where we started to require the epilogue.=