From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E0F62385663A; Tue, 30 May 2023 08:00:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0F62385663A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685433611; bh=dT5sR8nZeTt0Hmc13dY0xUxMTd9Le2V1QoBDZDK1EXw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=H01oEbncL2Y3ttITUn7tITR412yK18p9a+xczJcP4eq57a+KUDSj2of2TxlI2m5Gm MbHNl/g0B0zWdAVYdWRhFWTpNUr0tHgHC5IJc8m7ng+NchvqOS1yuAh2Wy8FSWyl2R DvfWNPsB28KwUKH4Jae1tW23TrhVf2igrKbOPv00= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86270] [10/11/12/13/14 Regression] Simple loop needs an extra register and an extra instruction Date: Tue, 30 May 2023 08:00:10 +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: 8.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on 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=3D86270 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2018-06-22 00:00:00 |2023-5-30 --- Comment #14 from Andrew Pinski --- There is still an extra move inside the loop: .L3: movq %rax, %rdx movl %eax, (%rsi,%rax,4) addq $1, %rax cmpq %rcx, %rdx jne .L3=