From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4F400385B835; Fri, 10 Apr 2020 10:57:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F400385B835 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586516261; bh=jt/MkEVSu0XmqyjbuLaUEXGnXIOF1ltFsJgPUuS0Dic=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uLzfouGggc2XJhUV8ammXEio71+ilGevLX+4fQp50hKN3F4+SG1W3NjppWl0q0o1V o/jDMy4laq98tDGba3AMi5G8p9/XhYDxSS3NHSETyoGy4B7kwRvCwGkxm93VxCfMH2 k6f4yPGtcmauniRPFpM88sJ2ja+Em30YVVEoraU4= From: "clyon 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: Fri, 10 Apr 2020 10:57:40 +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: clyon 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: cc 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, 10 Apr 2020 10:57:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70164 Christophe Lyon changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clyon at gcc dot gnu.org --- Comment #24 from Christophe Lyon --- With today's trunk, I still see the same problem: history_expand_line_internal: @ args =3D 0, pretend =3D 0, frame =3D 8 @ frame_needed =3D 0, uses_anonymous_args =3D 0 push {r0, r1, r2, r4, r5, r6, r7, lr} ldr r3, .L3 ldr r6, .L3+4 ldr r7, [r3] ldr r3, [r6] ; ; <--- load of 'hist_verify' onto r3 movs r5, r0 str r3, [sp, #4] ; <--- Spill movs r3, #0 str r3, [r6]=20=20=20=20=20=20=20=20=20=20=20=20 bl pre_process_line ldr r3, [sp, #4] ; <--- reload movs r4, r0 adds r7, r7, r3 str r7, [r6] cmp r5, r0 bne .L1 bl str_len adds r0, r0, #1 bl x_malloc movs r1, r4 bl str_cpy movs r4, r0 .L1: @ sp needed movs r0, r4 pop {r1, r2, r3, r4, r5, r6, r7, pc} .L4: .align 2 .L3: .word a1 .word hist_verify=