[llvm] [SDAG][NVPTX] Cache control metadata support and lowering (PR #204067)

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 2 01:33:39 PDT 2026


================
@@ -9341,7 +9349,7 @@ getMemcpyLoadsAndStores(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain,
                         Align SrcAlign, bool isVol, bool AlwaysInline,
                         MachinePointerInfo DstPtrInfo,
                         MachinePointerInfo SrcPtrInfo, const AAMDNodes &AAInfo,
-                        BatchAAResults *BatchAA) {
+                        BatchAAResults *BatchAA, const CallInst *CI) {
----------------
antoniofrighetto wrote:

Nit: passing CI into an internal SDAG-specialized routine (after BatchAA) doesn't feel much idiomatic. Since getMemcpyLoadsAndStores() already takes decomposed SrcPtrInfo/DstPtrInfo, I think it would be more consistent to extract the two MDNode values at the call-site and pass SrcMemCacheHint/DstMemCacheHint directly.

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


More information about the llvm-commits mailing list