From: Rasmus Villemoes Date: Thu, 16 Apr 2015 19:43:42 +0000 (-0700) Subject: lib/vsprintf.c: improve put_dec_trunc8 slightly X-Git-Tag: omap-for-v4.1/fixes-rc1~115^2~126 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=675cf53c1deaffadc7b6a0b4afe6cdafec86bedb;p=pandora-kernel.git lib/vsprintf.c: improve put_dec_trunc8 slightly I hadn't had enough coffee when I wrote this. Currently, the final increment of buf depends on the value loaded from the table, and causes gcc to emit a cmov immediately before the return. It is smarter to let it depend on r, since the increment can then be computed in parallel with the final load/store pair. It also shaves 16 bytes of .text. Signed-off-by: Rasmus Villemoes Cc: Tejun Heo Cc: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed