From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932312AbbBZMuA (ORCPT ); Thu, 26 Feb 2015 07:50:00 -0500 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.225]:11682 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932236AbbBZMt6 (ORCPT ); Thu, 26 Feb 2015 07:49:58 -0500 Date: Thu, 26 Feb 2015 07:50:49 -0500 From: Steven Rostedt To: Ingo Molnar Cc: Denys Vlasenko , "H. Peter Anvin" , Andy Lutomirski , Denys Vlasenko , Linus Torvalds , Borislav Petkov , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , X86 ML , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/4] x86: entry.S: tidy up several suboptimal insns Message-ID: <20150226075049.0f791b50@grimm.local.home> In-Reply-To: <20150226114703.GA4660@gmail.com> References: <1424803895-4420-1-git-send-email-dvlasenk@redhat.com> <54ED00B5.3020203@zytor.com> <20150225092043.GB16165@gmail.com> <20150225094312.2cfff453@gandalf.local.home> <20150225110129.5d099cd8@gandalf.local.home> <20150226114703.GA4660@gmail.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Feb 2015 12:47:03 +0100 Ingo Molnar wrote: > The bona fide removal of a real instruction from a true hot > path is generally always worth doing, you don't even have > to 'prove' that it improves things: unless the claim is > that for some really robust reason the instruction was zero > cost to begin with. I agree that removing instructions from hot paths are for the most part worth doing without any proof, as long as it doesn't change behavior or increase the memory footprint. But that's not the case here. If the change does affect behavior or increases memory footprint, then it should prove itself as worth doing. -- Steve