diff options
-rw-r--r-- | lib/Target/R600/AMDGPUAsmPrinter.cpp | 2 | ||||
-rw-r--r-- | lib/Target/R600/SIInstrInfo.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/R600/AMDGPUAsmPrinter.cpp b/lib/Target/R600/AMDGPUAsmPrinter.cpp index 30577909e8..67bdba2878 100644 --- a/lib/Target/R600/AMDGPUAsmPrinter.cpp +++ b/lib/Target/R600/AMDGPUAsmPrinter.cpp @@ -183,7 +183,7 @@ void AMDGPUAsmPrinter::EmitProgramInfoSI(MachineFunction &MF) { 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; diff --git a/lib/Target/R600/SIInstrInfo.cpp b/lib/Target/R600/SIInstrInfo.cpp index 8eb707d738..b5203a8c4f 100644 --- a/lib/Target/R600/SIInstrInfo.cpp +++ b/lib/Target/R600/SIInstrInfo.cpp @@ -172,7 +172,6 @@ SIInstrInfo::copyPhysReg(MachineBasicBlock &MBB, } unsigned SIInstrInfo::commuteOpcode(unsigned Opcode) const { - int NewOpc; // Try to map original to commuted opcode @@ -419,7 +418,7 @@ void SIInstrInfo::legalizeOpWithMove(MachineInstr *MI, unsigned OpIdx) const { 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)); |