[llvm] r325938 - Fix compiler warning introduced in r325931. NFC.
Geoff Berry via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 23 11:11:33 PST 2018
Author: gberry
Date: Fri Feb 23 11:11:33 2018
New Revision: 325938
URL: http://llvm.org/viewvc/llvm-project?rev=325938&view=rev
Log:
Fix compiler warning introduced in r325931. NFC.
Modified:
llvm/trunk/lib/Target/AMDGPU/SIInsertSkips.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIInsertSkips.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIInsertSkips.cpp?rev=325938&r1=325937&r2=325938&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIInsertSkips.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIInsertSkips.cpp Fri Feb 23 11:11:33 2018
@@ -262,15 +262,14 @@ void SIInsertSkips::kill(MachineInstr &M
assert(MI.getOperand(0).isReg());
- MachineInstr *NewMI;
if (TRI->isVGPR(MBB.getParent()->getRegInfo(),
MI.getOperand(0).getReg())) {
Opcode = AMDGPU::getVOPe32(Opcode);
- NewMI = BuildMI(MBB, &MI, DL, TII->get(Opcode))
+ BuildMI(MBB, &MI, DL, TII->get(Opcode))
.add(MI.getOperand(1))
.add(MI.getOperand(0));
} else {
- NewMI = BuildMI(MBB, &MI, DL, TII->get(Opcode))
+ BuildMI(MBB, &MI, DL, TII->get(Opcode))
.addReg(AMDGPU::VCC, RegState::Define)
.addImm(0) // src0 modifiers
.add(MI.getOperand(1))
More information about the llvm-commits
mailing list