[AMDGPU] Simplify getReservedNumSGPRs
authormadhur13490 <Madhur.Amilkanthwar@amd.com>
Fri, 18 Jun 2021 08:14:54 +0000 (13:44 +0530)
committermadhur13490 <Madhur.Amilkanthwar@amd.com>
Wed, 30 Jun 2021 10:49:39 +0000 (16:19 +0530)
commita7ed55f64c5fdce9af3257458779402fb9de1f8b
treef9fc668f33512f680c4291c9b6baaa54791f9e23
parent611a02cce509d304ebf66054b7816f1e0b5a792c
[AMDGPU] Simplify getReservedNumSGPRs

This is a followup patch on D103636 where
it seemed checking on amdgpu-calls and
amdgpu-stack-objects is unnecessary. Removing these
checks didn't regress any tests functionally.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D104513
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp