Fix -Wunused-value warning

llvm-svn: 300254
This commit is contained in:
Reid Kleckner 2017-04-13 20:32:58 +00:00
parent 6c2615177b
commit dbc9ba3061
1 changed files with 6 additions and 6 deletions

View File

@ -384,9 +384,9 @@ MachineBasicBlock::iterator SILoadStoreOptimizer::mergeRead2Pair(
if (CI.BaseOff) {
BaseReg = MRI->createVirtualRegister(&AMDGPU::VGPR_32RegClass);
BaseRegFlags = RegState::Kill;
*BuildMI(*MBB, CI.Paired, DL, TII->get(AMDGPU::V_ADD_I32_e32), BaseReg)
.addImm(CI.BaseOff)
.addReg(AddrReg->getReg());
BuildMI(*MBB, CI.Paired, DL, TII->get(AMDGPU::V_ADD_I32_e32), BaseReg)
.addImm(CI.BaseOff)
.addReg(AddrReg->getReg());
}
MachineInstrBuilder Read2 = BuildMI(*MBB, CI.Paired, DL, Read2Desc, DestReg)
@ -456,9 +456,9 @@ MachineBasicBlock::iterator SILoadStoreOptimizer::mergeWrite2Pair(
if (CI.BaseOff) {
BaseReg = MRI->createVirtualRegister(&AMDGPU::VGPR_32RegClass);
BaseRegFlags = RegState::Kill;
*BuildMI(*MBB, CI.Paired, DL, TII->get(AMDGPU::V_ADD_I32_e32), BaseReg)
.addImm(CI.BaseOff)
.addReg(Addr->getReg());
BuildMI(*MBB, CI.Paired, DL, TII->get(AMDGPU::V_ADD_I32_e32), BaseReg)
.addImm(CI.BaseOff)
.addReg(Addr->getReg());
}
MachineInstrBuilder Write2 = BuildMI(*MBB, CI.Paired, DL, Write2Desc)