[llvm] [AMDGPU] Do not run GCNNSAReassign pass for GFX12 (PR #78185)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 15 09:03:40 PST 2024


================
@@ -237,7 +237,7 @@ GCNNSAReassign::CheckNSA(const MachineInstr &MI, bool Fast) const {
 
 bool GCNNSAReassign::runOnMachineFunction(MachineFunction &MF) {
   ST = &MF.getSubtarget<GCNSubtarget>();
-  if (!ST->hasNSAEncoding())
+  if (!ST->hasNSAEncoding() || ST->getGeneration() > GCNSubtarget::GFX11)
----------------
arsenm wrote:

If it doesn't have NSA encodings, why isn't it covered by !ST->hasNSAEncoding()?

https://github.com/llvm/llvm-project/pull/78185


More information about the llvm-commits mailing list