Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X86] Return more accurate getNumSupportedRegs() (NFC)
llvm#70222 introduces 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 still always returned NUM_TARGET_REGS. Adjust it to return a smaller number of registers depending on availability of avx/avx512/amx.
- Loading branch information