[llvm] [NVPTX] Lower LLVM masked vector loads and stores to PTX (PR #159387)

Drew Kersnar via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 27 13:20:25 PDT 2025


================
@@ -1204,6 +1219,8 @@ bool NVPTXDAGToDAGISel::tryLoadVector(SDNode *N) {
                                 : NVPTX::PTXLdStInstCode::Untyped;
 
   const unsigned FromTypeWidth = getFromTypeWidthForLoad(LD);
+  const uint32_t UsedBytesMask =
+      N->getConstantOperandVal(N->getNumOperands() - 2);
----------------
dakersnar wrote:

Keeping this to mirror the existing ExtensionType operand indexing in the same function, unless you'd like me to change both.

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


More information about the llvm-commits mailing list