[llvm] [AMDGPU] Handle nontemporal and amdgpu.last.use metadata in amdgpu-lower-buffer-fat-pointers (PR #120139)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 03:22:11 PST 2025


================
@@ -1074,18 +1074,6 @@ Value *SplitPtrStructs::handleMemoryInst(Instruction *I, Value *Arg, Value *Ptr,
   Args.push_back(IRB.getInt32(0));
 
   uint32_t Aux = 0;
-  bool IsInvariant =
-      (isa<LoadInst>(I) && I->getMetadata(LLVMContext::MD_invariant_load));
-  bool IsNonTemporal = I->getMetadata(LLVMContext::MD_nontemporal);
----------------
jayfoad wrote:

Removing `IsInvariant` and `IsNonTemporal` makes sense to me, since we preserve this info when we copying the metadata to the intrinsic.

But I'm not sure if it is safe to remove the glc/dlc logic below.

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


More information about the llvm-commits mailing list