From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D9DBA384B0C1; Tue, 21 Apr 2020 15:20:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D9DBA384B0C1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587482418; bh=oNkqjyrVAtD/ENtpOCZcS+Qm/wfhhEbfbdoLUBHFM5M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ivd8jkjs5VsJbPBF3wnmfWcQ2BakqwAagipToOXhIWvQXZPMX0TjAeu/7nVx2lpC4 ophqDQBC83sECniiUFpUjxfT9uk+8y25wwraMFWZ9r3F63OS4SmA0vA5CoqM9AdS9S HzkumMlzkF2F2AqJnszd7m75U5AtvUk3MbykVaZg= From: "vmakarov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/70164] [8/9/10 Regression] Code/performance regression due to poor register allocation on Cortex-M0 Date: Tue, 21 Apr 2020 15:20:18 +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: 6.0 X-Bugzilla-Keywords: missed-optimization, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: vmakarov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 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: Tue, 21 Apr 2020 15:20:19 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70164 --- Comment #25 from Vladimir Makarov --- Sorry, I can not reproduce this. With today trunk I have for pr45701-1.c (= -Os -mthumb): history_expand_line_internal: @ args =3D 0, pretend =3D 0, frame =3D 0 @ frame_needed =3D 0, uses_anonymous_args =3D 0 push {r3, r4, r5, r6, r7, lr} mov r4, r0 ldr r5, .L3 ldr r3, .L3+4 ldr r7, [r5] ldr r6, [r3] movs r3, #0 str r3, [r5] bl pre_process_line cmp r4, r0 add r6, r6, r7 str r6, [r5] bne .L1 bl str_len adds r0, r0, #1 bl x_malloc mov r1, r4 pop {r3, r4, r5, r6, r7, lr} b str_cpy .L1: pop {r3, r4, r5, r6, r7, pc}=