[llvm] [AMDGPU] Add mark last scratch load pass (PR #75512)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 4 04:47:50 PST 2024
================
@@ -1657,8 +1657,9 @@ void SIRegisterInfo::buildSpillLoadStore(
} else {
MIB.addReg(SOffset, SOffsetRegState);
}
- MIB.addImm(Offset + RegOffset)
- .addImm(0); // cpol
+
+ int64_t CPol = AMDGPU::isGFX12Plus(ST) && LastUse ? AMDGPU::CPol::TH_LU : 0;
----------------
jayfoad wrote:
You don't really need to check isGFX12Plus here. It could be an assert. Pre-GFX12, last_use should always be 0.
https://github.com/llvm/llvm-project/pull/75512
More information about the llvm-commits
mailing list