[AMDGPU] Make use of GCNSubtarget::hasNSAEncoding. NFC.

This commit is contained in:
Jay Foad 2023-03-21 09:49:43 +00:00
parent 54ab954149
commit 25ca26e0da

View File

@ -237,7 +237,7 @@ GCNNSAReassign::CheckNSA(const MachineInstr &MI, bool Fast) const {
bool GCNNSAReassign::runOnMachineFunction(MachineFunction &MF) {
ST = &MF.getSubtarget<GCNSubtarget>();
if (ST->getGeneration() < GCNSubtarget::GFX10)
if (!ST->hasNSAEncoding())
return false;
MRI = &MF.getRegInfo();