[AMDGPU] Remove selectSGPRVectorRegClassID. NFC.
authorJay Foad <jay.foad@amd.com>
Tue, 21 Apr 2020 12:34:23 +0000 (13:34 +0100)
committerJay Foad <jay.foad@amd.com>
Tue, 21 Apr 2020 15:29:21 +0000 (16:29 +0100)
commit658f33dcea4640c0766a9b3ad67004c900892506
tree8399a92db3da62c6df28ccfd69b54d035db7b4d5
parent497c76e96dcdfe39f486853ea3b17810be5b6e45
[AMDGPU] Remove selectSGPRVectorRegClassID. NFC.

This was yet another function that had to be updated whenever you added
a new register class. Remove it by refactoring its only caller to use
standard helper functions from SIRegisterInfo.

Differential Revision: https://reviews.llvm.org/D78557
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/lib/Target/AMDGPU/SIRegisterInfo.h