diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-10-06 18:06:49 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-19 14:49:55 +0300 |
commit | 4a04d1d14831d31f2cd0e31eb1568cc9c1be0095 (patch) | |
tree | 519b920651e76343cb0af5abb3822a3a583356e7 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5a158c6b0d033893cc80c28b182e1207253768a5 (diff) | |
download | linux-4a04d1d14831d31f2cd0e31eb1568cc9c1be0095.tar.xz |
io_uring: optimise out req->opcode reloading
Looking at the assembly, the compiler decided to reload req->opcode in
io_op_defs[opcode].needs_file instead of one it had in a register, so
store it in a temp variable so it can be optimised out. Also move the
personality block later, it's better for spilling/etc. as it only
depends on @sqe, which we're keeping anyway.
By the way, zero req->opcode if it over IORING_OP_LAST, not a problem,
at the moment but is safer.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/6ba869f5f8b7b0f991c87fdf089f0abf87cbe06b.1633532552.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions