From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2D58E3850236; Fri, 14 Oct 2022 07:55:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D58E3850236 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665734158; bh=k7mtmEb8/zUZZm0nPbEdRDF+8L8/JpbBtZW1E0hh4G0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Moa5bnQfFAXS/HAkLgcdPaE+5YHXCj/r3f/zzKp008pvMc7pxhC7MTfpP0X86gHGu QTsd3SWoTuP/iYLttd5isLHGSBvM0mFSpa0rPWif2PiToIhs7JlZIwO/iKRvjY07C1 h0FCfLAPn5KjL+XcLueEhaGoBMnB1t6LnZRjQJo8= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107250] Load unnecessarily happens before malloc Date: Fri, 14 Oct 2022 07:55:57 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov 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: --- 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107250 --- Comment #3 from Alexander Monakov --- Well, obviously because in one function both 'f' and 'tmp' are live across = the call, and in the other function only 'f' is live across the call. The difference is literally pushing one register vs. two registers, plus extra 8 bytes to preserve 16-byte ABI alignment.=