[AMDGPU] Make use of GCNSubtarget::hasNSAEncoding. NFC.
This commit is contained in:
parent
54ab954149
commit
25ca26e0da
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user