summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-09-09 01:16:59 +0000
committerMatthias Braun <matze@braunis.de>2017-09-09 01:16:59 +0000
commit6b2b88b071b5f7f9b91ef567cd956ee5dcda0e8a (patch)
tree524871bbea097fcf83fd97e3b12009732370bff7 /llvm/lib/CodeGen/RegAllocFast.cpp
parent6d9bc278eff5aea217afcaa0c58a4ab74e592804 (diff)
downloadbcm5719-llvm-6b2b88b071b5f7f9b91ef567cd956ee5dcda0e8a.tar.gz
bcm5719-llvm-6b2b88b071b5f7f9b91ef567cd956ee5dcda0e8a.zip
RegAllocFast: Fix warning; NFC
llvm-svn: 312852
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocFast.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index 92f653945b5..fd6e602bbe4 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -742,9 +742,8 @@ void RegAllocFast::handleThroughOperands(MachineInstr &MI,
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);
OpenPOWER on IntegriCloud