[llvm] Add AMDGPU metadata to copyMetadataForLoad() (PR #110720)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 07:50:55 PDT 2024


================
@@ -3488,6 +3490,14 @@ void llvm::copyMetadataForLoad(LoadInst &Dest, const LoadInst &Source) {
       copyRangeMetadata(DL, Source, N, Dest);
       break;
     }
+    // Extended last-use / nontemporal hint on AMD GPUs
+    if (ID == Ctx.getMDKindID("amdpu.last.use"))
----------------
arsenm wrote:

Is this the one that we want to parameterize !nontemporal for? Probably should just do that? 

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


More information about the llvm-commits mailing list