diff options
| author | Linus Torvalds <[email protected]> | 2024-04-09 18:55:07 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2024-05-22 21:12:11 +0000 |
| commit | b9b60b3199b70fe3ce74ff493b1870ccd7554134 (patch) | |
| tree | 232e0543c7015119bf752331a1642fa4b8f659de /drivers/usb/cdns3/cdns3-trace.h | |
| parent | x86: improve array_index_mask_nospec() code generation (diff) | |
| download | kernel-b9b60b3199b70fe3ce74ff493b1870ccd7554134.tar.gz kernel-b9b60b3199b70fe3ce74ff493b1870ccd7554134.zip | |
x86: improve bitop code generation with clang
This uses the new ASM_INPUT_RM macro to avoid the bad code generation
issue that clang has with more generic asm inputs.
This ends up avoiding generating code like this:
mov %r10,(%rsp)
tzcnt (%rsp),%rcx
which now becomes just
tzcnt %r10,%rcx
and in the process ends up also removing a few unnecessary stack frames
when the only use was that pointless "asm uses memory location off stack".
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.h')
0 files changed, 0 insertions, 0 deletions
