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

Krzysztof Drewniak via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 11:43:06 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"))
----------------
krzysz00 wrote:

I think this is one of the owes I wanted to parametrize `nontemporal` for, yeah.

But `!lamdgpu.last.use` already landed so ... we might as well keep it plumbed through (though someone might want to do that for the gfx12 buffer op cache hints) until the nontemporal generality lands.

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


More information about the llvm-commits mailing list