[AMDGPU] Stop using getMinimalPhysRegClass in LowerFormalArguments
authorJay Foad <jay.foad@amd.com>
Thu, 17 Mar 2022 12:55:33 +0000 (12:55 +0000)
committerJay Foad <jay.foad@amd.com>
Thu, 17 Mar 2022 15:19:17 +0000 (15:19 +0000)
commit313f306b26841a3f99bb0f942a6982cf273f89e3
treeedab156233f01287f898d6fbc6ecb31b36b59077
parent12a2f7494e745eb4c90133ea17cadac3a8eb8d07
[AMDGPU] Stop using getMinimalPhysRegClass in LowerFormalArguments

NFCI. The motivation for this is avoid problems in future if we add new
classes containing only a subset of all VGPRs, or a subset of all SGPRs.
getMinimalPhysRegClass would favour these smaller classes, which is not
what we want here.

Differential Revision: https://reviews.llvm.org/D121914
llvm/lib/Target/AMDGPU/SIISelLowering.cpp