git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194688
91177308-0d34-0410-b5e6-
96231b3b80d8
unsigned numOperands = MI.getNumOperands();
for (unsigned op_idx = 0; op_idx < numOperands; op_idx++) {
- MachineOperand & MO = MI.getOperand(op_idx);
+ MachineOperand &MO = MI.getOperand(op_idx);
unsigned maxUsed;
unsigned width = 0;
bool isSGPR = false;
}
unsigned SIInstrInfo::commuteOpcode(unsigned Opcode) const {
-
int NewOpc;
// Try to map original to commuted opcode
if (MO.isReg()) {
Opcode = AMDGPU::COPY;
} else if (RI.isSGPRClass(RC)) {
- Opcode = AMDGPU::S_MOV_B32;
+ Opcode = AMDGPU::S_MOV_B32;
}
unsigned Reg = MRI.createVirtualRegister(RI.getRegClass(RCID));