From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1BEBC385DC37; Fri, 20 Nov 2020 10:54:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BEBC385DC37 From: "zhroma at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/97421] aarch64: Wrong code with -O2 -fmodulo-sched Date: Fri, 20 Nov 2020 10:54:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zhroma at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: zhroma at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on cc everconfirmed bug_status assigned_to 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: Fri, 20 Nov 2020 10:54:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97421 Roman Zhuykov changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2020-11-20 CC| |abel at gcc dot gnu.org, | |amonakov at gcc dot gnu.or= g, | |rguenth at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Assignee|unassigned at gcc dot gnu.org |zhroma at gcc dot g= nu.org --- Comment #6 from Roman Zhuykov --- Thanks for catching this! When modulo sched succeded and found that counter register is const-initial= ized in prologue it wrongly directly adjust the initization without checking that register may be read a bit later in prologue. I've attached the patch I'm testing.=