12 Dec
2022
12 Dec
'22
8:33 a.m.
On Mon Dec 12 14:32:43 2022 +0000, Rémi Bernon wrote:
Well I'm afraid to say that it looks like you're building this without any optimization. You should use `-O2` at least when running benchmarks. FWIW it should probably look like:
0000000000022960 <thunk64_vkGetDescriptorEXT>:
22960: 48 8b 07 mov (%rdi),%rax
22963: 48 8b 4f 18 mov 0x18(%rdi),%rcx
22967: 48 8b 57 10 mov 0x10(%rdi),%rdx
2296b: 48 8b 77 08 mov 0x8(%rdi),%rsi
2296f: 48 8b 40 08 mov 0x8(%rax),%rax
22973: 48 8b b8 90 0e 00 00 mov 0xe90(%rax),%rdi
2297a: ff a0 e8 0a 00 00 jmp *0xae8(%rax)
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1763#note_19464