aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2019-11-30 23:23:52 +0300
committerJens Axboe <[email protected]>2019-12-03 07:36:38 -0700
commit795ee49c1a28d1b3eeb2b463f18d557700fc6153 (patch)
tree37a0074d7559534cd68eb5d58883f5ab27f3bf7d /scripts/bpf_helpers_doc.py
parent8cdda87a4414092cd210e766189cf0353a844861 (diff)
block: optimise bvec_iter_advance()
bvec_iter_advance() is quite popular, but compilers fail to do proper alias analysis and optimise it good enough. The assembly is checked for gcc 9.2, x86-64. - remove @iter->bi_size from min(...), as it's always less than @bytes. Modify at the beginning and forget about it. - the compiler isn't able to collapse memory dependencies and remove writes in the loop. Help it by explicitely using local vars. Signed-off-by: Arvind Sankar <[email protected]> Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions