Improve TCG optimizer
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest9 patches 7 repliesIn review
- v18 patches 6 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | tcg: improve profilertcg/ tcg/ | +12 | 0 replies | |
| 2/9 | tcg/optimize: split expression simplificationtcg/ | +13 | 0 replies | |
| 3/9 | tcg/optimize: simplify or/xor r, a, 0 casestcg/ | +2 | 0 replies | |
| 4/9 | tcg/optimize: simplify and r, a, 0 casestcg/ | +1 | 0 replies | |
| 5/9 | tcg/optimize: simplify shift/rot r, 0, a => movi r, 0 casestcg/ | +20 | 0 replies | |
| 6/9 | tcg/optimize: swap brcond/setcond arguments when possibletcg/ | +18 | 0 replies | |
| 7/9 | tcg/optimize: add constant folding for setcondtcg/ | +81 | 0 replies | |
| 8/9 | tcg/optimize: add constant folding for brcondtcg/ | +26 | 0 replies | |
| 9/9 | tcg/optimize: fix if/else/break coding styletcg/ | +11 | 0 replies |
Reviews trailers per patch
6 of 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Richard Henderson |
|---|---|
| Series | R-b |
| 1/9 | |
| 2/9 | R-b |
| 3/9 | R-b |
| 4/9 | R-b |
| 5/9 | R-b |
| 6/9 | R-b |
| 7/9 | |
| 8/9 | R-b |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH v2 0/9] Improve TCG optimizer
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