qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/9] Improve TCG optimizer
@ 2012-09-07 13:16 Aurelien Jarno
  2012-09-07 13:16 ` [Qemu-devel] [PATCH v2 1/9] tcg: improve profiler Aurelien Jarno
                   ` (10 more replies)
  0 siblings, 11 replies; 17+ messages in thread
From: Aurelien Jarno @ 2012-09-07 13:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: Aurelien Jarno

This patch series improves the TCG optimizer, based on patterns found
while executing various guest. The brcond ad setcond constant folding
are useful especially useful when they are used to avoid some argument
values (e.g. division by 0), and thus can be optimized when this argument
is a constant.

This bring around 0.5% improvement on openssl like benchmarks.


Modifications between V1 and V2 following feedback I got:
 - In the first patch, account for the liveness analysis time and 
   optimizing pass time separately
 - Fixed swith/break in patch 7 to correctly throw an error
 - Added patch 9 to make the code more readable
Other patches are unmodified.


Aurelien Jarno (9):
  tcg: improve profiler
  tcg/optimize: split expression simplification
  tcg/optimize: simplify or/xor r, a, 0 cases
  tcg/optimize: simplify and r, a, 0 cases
  tcg/optimize: simplify shift/rot r, 0, a => movi r, 0 cases
  tcg/optimize: swap brcond/setcond arguments when possible
  tcg/optimize: add constant folding for setcond
  tcg/optimize: add constant folding for brcond
  tcg/optimize: fix if/else/break coding style

 tcg/optimize.c |  179 +++++++++++++++++++++++++++++++++++++++++++++++++++-----
 tcg/tcg.c      |   12 +++-
 tcg/tcg.h      |    1 +
 3 files changed, 175 insertions(+), 17 deletions(-)

--
1.7.10.4

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2012-09-10 13:55 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-07 13:16 [Qemu-devel] [PATCH v2 0/9] Improve TCG optimizer Aurelien Jarno
2012-09-07 13:16 ` [Qemu-devel] [PATCH v2 1/9] tcg: improve profiler Aurelien Jarno
2012-09-07 13:16 ` [Qemu-devel] [PATCH v2 2/9] tcg/optimize: split expression simplification Aurelien Jarno
2012-09-07 13:16 ` [Qemu-devel] [PATCH v2 3/9] tcg/optimize: simplify or/xor r, a, 0 cases Aurelien Jarno
2012-09-07 13:16 ` [Qemu-devel] [PATCH v2 4/9] tcg/optimize: simplify and " Aurelien Jarno
2012-09-07 13:16 ` [Qemu-devel] [PATCH v2 5/9] tcg/optimize: simplify shift/rot r, 0, a => movi r, " Aurelien Jarno
2012-09-07 13:16 ` [Qemu-devel] [PATCH v2 6/9] tcg/optimize: swap brcond/setcond arguments when possible Aurelien Jarno
2012-09-07 13:16 ` [Qemu-devel] [PATCH v2 7/9] tcg/optimize: add constant folding for setcond Aurelien Jarno
2012-09-07 13:16 ` [Qemu-devel] [PATCH v2 8/9] tcg/optimize: add constant folding for brcond Aurelien Jarno
2012-09-07 13:16 ` [Qemu-devel] [PATCH v2 9/9] tcg/optimize: fix if/else/break coding style Aurelien Jarno
2012-09-08  8:18 ` [Qemu-devel] [PATCH v2 0/9] Improve TCG optimizer Blue Swirl
2012-09-08  9:01   ` Aurelien Jarno
2012-09-08  9:06     ` Blue Swirl
2012-09-08  9:12       ` Aurelien Jarno
2012-09-08  9:29         ` Blue Swirl
2012-09-08  9:35           ` Aurelien Jarno
2012-09-10 13:55 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).