[PATCH] D51098: [AMDGPU] Add support for multi-dword s.buffer.load intrinsic

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 22 10:29:36 PDT 2018


arsenm added inline comments.


================
Comment at: lib/Target/AMDGPU/SIInstrInfo.cpp:4492
+  MachineBasicBlock::iterator MII = Inst;
+  DebugLoc DL = Inst.getDebugLoc();
+
----------------
const reference 


================
Comment at: lib/Target/AMDGPU/SIInstrInfo.cpp:4533
+    // Extract the 4 32 bit sub-registers from the result to add into the final REG_SEQUENCE
+    MachineOperand NewDestOp = NewMI.getOperand(0);
+    for (unsigned i = 0 ; i < 4 ; i++)
----------------
I think value copies of MachineOperand don't behave like you would expect, so I usually avoid them


Repository:
  rL LLVM

https://reviews.llvm.org/D51098





More information about the llvm-commits mailing list