[clang] [llvm] [mlir] [AMDGPU] Add ptr.s.buffer.load intrinsic, use it from Clang (PR #209243)

Scott Linder via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 16 10:13:41 PDT 2026


================
@@ -644,19 +644,16 @@ bool RegBankLegalizeHelper::lowerSBufToBuf(MachineInstr &MI,
     NumLoads = LoadSize / 128;
     Ty = Ty.divide(NumLoads);
   }
-  for (int i = 0; i < NumLoads; ++i)
-    LoadParts.emplace_back(MRI.createVirtualRegister({VgprRB, Ty}));
   MachineMemOperand *OrigMMO = *MI.memoperands_begin();
+  for (int I = 0; I < NumLoads; ++I)
----------------
slinder1 wrote:

Is there a side-effect here that makes moving this snippet meaningful?

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


More information about the cfe-commits mailing list