[PATCH] drivers/mtd/chips/cfi_cmdset_0020.c: Deinline do_write_buffer, save 5316 bytes

Brian Norris computersforpeace at gmail.com
Sat Jul 9 18:54:48 PDT 2016


On Fri, Apr 08, 2016 at 08:35:43PM +0200, Denys Vlasenko wrote:
> This function compiles to 2554 bytes of machine code.
> In C, the function is almost 200 lines long.
> 
> It has only one callsite, but forced inlining that much code
> makes gcc generate significantly worse code. Let gcc itself decide
> what to do.
> 
> Signed-off-by: Denys Vlasenko <dvlasenk at redhat.com>
> CC: David Woodhouse <David.Woodhouse at intel.com>
> CC: Brian Norris <computersforpeace at gmail.com>
> CC: Dan Carpenter <dan.carpenter at oracle.com>
> CC: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
> CC: linux-mtd at lists.infradead.org
> CC: linux-kernel at vger.kernel.org

Applied to l2-mtd.git



More information about the linux-mtd mailing list