[PATCH] D58138: [GlobalISel][NFC] Gardening: Factor out more intrinsics into simple intrinsics

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 18 13:38:35 PST 2019


aemerson added inline comments.


================
Comment at: lib/CodeGen/GlobalISel/IRTranslator.cpp:859
+  ArrayRef<unsigned> DstRegs = getOrCreateVRegs(CI);
+  SmallVector<llvm::DstOp, 4> DstOps(DstRegs.begin(), DstRegs.end());
 
----------------
arsenm wrote:
> arsenm wrote:
> > I don't think you need to copy the ArrayRef to a SmallVector, you should be able to use the ArrayRef as is
> Actually since this is DstOp, and not unsigned, you do. Maybe this should be moved as an overload in MachineIRBuilder though. You also don't need the llvm::
Seems like SrcOp and DstOp should be inside MachineIRBuilder instead of in the llvm namespace anyway.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58138/new/

https://reviews.llvm.org/D58138





More information about the llvm-commits mailing list