From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9B28E3851C17; Wed, 13 May 2020 11:24:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B28E3851C17 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589369081; bh=SCUttOh91K00KzWIuZPdr4rhoVtGWN1MIKfr95BfP6c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QF1TK+zR/E3u6B3mMIIxDX0Udq6wr/ZUI8qHMXgEtb43L4dCFyDQ5mDC/GBwwGAEl D27SJyDKWmnVldU+7XZR0HMwjjeyGTwJlTVZQm/hTCYlLxTj0jeEinG5IB/Q3ui0Iu Z9JreSkXwoU3POezFwb70pHVySoYPABl8GMAp2is= From: "guojiufu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/95018] [10/11 Regression] Excessive unrolling for Fortran library array handling Date: Wed, 13 May 2020 11:24:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: guojiufu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.2 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2020 11:24:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95018 --- Comment #33 from Jiu Fu Guo --- (In reply to Richard Biener from comment #32) > Note I don't think the unrolling is excessive - store motion then applying > to all count[] and all computations hoisted out of the loop may be a bit > too much for register pressure though, especially since we're using > flag-based store-motion. But it causes the stores to be materialized > on all exits of the loop which means we end up with N*N conditional store= s :/ In general, it may not very aggressive for param_max_peel_branches =3D 31, param_max_completely_peel_times =3D 16.=20 For in_pack_i4.c, the loop is at most 13+1 times and then be unrolled. While for the loop, unrolling increases size and does not help performance. >=20 > I guess SM could be improved here. Thanks all!=