[llvm] [AMDGPU] Handle amdgpu.last.use metadata (PR #83816)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 4 07:51:21 PST 2024
================
@@ -2415,6 +2442,16 @@ bool SIGfx12CacheControl::enableVolatileAndOrNonTemporal(
return Changed;
}
+bool SIGfx12CacheControl::enableLastUse(MachineInstr &MI,
+ bool IsLastUse) const {
+ assert(MI.mayLoad() && !MI.mayStore());
+
+ if (IsLastUse && !isScope(MI, AMDGPU::CPol::SCOPE_SYS))
----------------
jayfoad wrote:
What's the reason for not doing this for SCOPE_SYS?
https://github.com/llvm/llvm-project/pull/83816
More information about the llvm-commits
mailing list