[llvm] r312852 - RegAllocFast: Fix warning; NFC
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 8 18:16:59 PDT 2017
Author: matze
Date: Fri Sep 8 18:16:59 2017
New Revision: 312852
URL: http://llvm.org/viewvc/llvm-project?rev=312852&view=rev
Log:
RegAllocFast: Fix warning; NFC
Modified:
llvm/trunk/lib/CodeGen/RegAllocFast.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocFast.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocFast.cpp?rev=312852&r1=312851&r2=312852&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocFast.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocFast.cpp Fri Sep 8 18:16:59 2017
@@ -742,9 +742,8 @@ void RegAllocFast::handleThroughOperands
if (!TargetRegisterInfo::isVirtualRegister(Reg)) continue;
if (MO.isUse()) {
if (!MO.isTied()) continue;
- unsigned DefIdx = MI.findTiedOperandIdx(I);
DEBUG(dbgs() << "Operand " << I << "("<< MO << ") is tied to operand "
- << DefIdx << ".\n");
+ << MI.findTiedOperandIdx(I) << ".\n");
LiveRegMap::iterator LRI = reloadVirtReg(MI, I, Reg, 0);
MCPhysReg PhysReg = LRI->PhysReg;
setPhysReg(MI, I, PhysReg);
More information about the llvm-commits
mailing list