From: Wei Mi Date: Mon, 4 Apr 2016 17:03:58 +0000 (+0000) Subject: Fix unused var warning caused by r265309. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cdaf1df6579f0b932db4f4a29b176bab74305ae5;p=platform%2Fupstream%2Fllvm.git Fix unused var warning caused by r265309. llvm-svn: 265312 --- diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp index ac4c43b..e8abb3d 100644 --- a/llvm/lib/CodeGen/InlineSpiller.cpp +++ b/llvm/lib/CodeGen/InlineSpiller.cpp @@ -54,7 +54,6 @@ static cl::opt DisableHoisting("disable-spill-hoist", cl::Hidden, namespace { class HoistSpillHelper { - MachineFunction &MF; LiveIntervals &LIS; LiveStacks &LSS; AliasAnalysis *AA; @@ -104,7 +103,7 @@ class HoistSpillHelper { public: HoistSpillHelper(MachineFunctionPass &pass, MachineFunction &mf, VirtRegMap &vrm) - : MF(mf), LIS(pass.getAnalysis()), + : LIS(pass.getAnalysis()), LSS(pass.getAnalysis()), AA(&pass.getAnalysis().getAAResults()), MDT(pass.getAnalysis()), @@ -343,9 +342,10 @@ bool InlineSpiller::isSibling(unsigned Reg) { bool InlineSpiller::hoistSpillInsideBB(LiveInterval &SpillLI, MachineInstr &CopyMI) { SlotIndex Idx = LIS.getInstructionIndex(CopyMI); +#ifndef NDEBUG VNInfo *VNI = SpillLI.getVNInfoAt(Idx.getRegSlot()); assert(VNI && VNI->def == Idx.getRegSlot() && "Not defined by copy"); - +#endif unsigned SrcReg = CopyMI.getOperand(1).getReg(); LiveInterval &SrcLI = LIS.getInterval(SrcReg); VNInfo *SrcVNI = SrcLI.getVNInfoAt(Idx);