From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27582 invoked by alias); 20 Apr 2013 13:59:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 27555 invoked by uid 48); 20 Apr 2013 13:59:21 -0000 From: "bpringlemeir at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/11824] [ARM] Parameter passing via stack could be improved Date: Sat, 20 Apr 2013 13:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: bpringlemeir at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg01799.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11824 Bill Pringlemeir changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bpringlemeir at gmail dot | |com --- Comment #4 from Bill Pringlemeir 2013-04-20 13:59:19 UTC --- As far as I understand, the instruction stream is smaller, but there are two extra memory writes to adjust the stack. This optimization is only important for '-Os'. Generally, it will slow the code as data writes and code fetches are generally the same cost and this trades 2 for 1.