[all-commits] [llvm/llvm-project] 228ef8: [X86] Return more accurate getNumSupportedRegs() (...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Nov 9 00:49:51 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 228ef85b5b6a4a42effdff7e229decabe8698797
https://github.com/llvm/llvm-project/commit/228ef85b5b6a4a42effdff7e229decabe8698797
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-11-09 (Thu, 09 Nov 2023)
Changed paths:
M llvm/lib/Target/X86/X86RegisterInfo.cpp
Log Message:
-----------
[X86] Return more accurate getNumSupportedRegs() (NFC) (#71690)
https://github.com/llvm/llvm-project/pull/70222 introduced a hook to
return a more accurate number of registers supported for a specific
subtarget (rather than target). However, while x86 registers were
reordered to allow using this, the implementation currently still always
returns NUM_TARGET_REGS.
Adjust it to return a smaller number of registers depending on
availability of avx/avx512/amx.
The actual impact of this seems to be pretty small, on the order of
0.05%.
More information about the All-commits
mailing list