[llvm] [AMDGPU] Add mark last scratch load pass (PR #75512)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 00:57:26 PST 2024


================
@@ -1658,7 +1658,9 @@ void SIRegisterInfo::buildSpillLoadStore(
       MIB.addReg(SOffset, SOffsetRegState);
     }
 
-    int64_t CPol = AMDGPU::isGFX12Plus(ST) && LastUse ? AMDGPU::CPol::TH_LU : 0;
+    assert((!LastUse || AMDGPU::isGFX12Plus(ST)) &&
+           "last_use operand exists only on GFX12+");
----------------
arsenm wrote:

verifier should probably be checking this instead 

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


More information about the llvm-commits mailing list