From: Andi Kleen <andi@firstfloor.org>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
"H. Peter Anvin" <hpa@zytor.com>,
Andi Kleen <andi@firstfloor.org>
Subject: Re: [PATCH] Use -mskip-rax-setup if supported
Date: Thu, 16 Apr 2015 23:25:51 +0200 [thread overview]
Message-ID: <20150416212551.GY2366@two.firstfloor.org> (raw)
In-Reply-To: <CAMe9rOrfDo3MGaQc_s5crw3TrYhS8NtqeyRcUFiA0yAV8e9Nig@mail.gmail.com>
On Thu, Apr 16, 2015 at 02:23:44PM -0700, H.J. Lu wrote:
> GCC 5 added a compiler option, -mskip-rax-setup, for x86-64. It skips
> setting up the RAX register when SSE is disabled and there are no
> variable arguments passed in vector registers. Since kernel doesn't
> pass vector registers to functions with variable arguments, this option
> can be used to optimize the x86-64 kernel. For kernel 3.17:
>
> text data bss dec hex filename
> 11455921 2204048 5853184 19513153 129bf41 vmlinux #with -mskip-rax-setup
> 11480079 2204048 5853184 19537311 12a1d9f vmlinux
Patch looks good to me.
Reviewed-by: Andi Kleen <ak@linux.intel.com>
-Andi
next prev parent reply other threads:[~2015-04-16 21:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-16 21:23 [PATCH] Use -mskip-rax-setup if supported H.J. Lu
2015-04-16 21:25 ` Andi Kleen [this message]
2015-04-25 17:26 ` Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150416212551.GY2366@two.firstfloor.org \
--to=andi@firstfloor.org \
--cc=hjl.tools@gmail.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.