[PATCH] D45826: AMDGPU: Legalize the operand of SI_INIT_M0

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 19 10:31:02 PDT 2018


rampitec added inline comments.


================
Comment at: lib/Target/AMDGPU/SIInstrInfo.cpp:3303
   }
 
   MachineInstrBuilder MIB =
----------------
Do not you want to return SRegs[0] here (after the loop) if SubRegs == 1 and if not move creation of DstReg after that? It will save some code duplication.


Repository:
  rL LLVM

https://reviews.llvm.org/D45826





More information about the llvm-commits mailing list