summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2016-04-04 17:03:58 +0000
committerWei Mi <wmi@google.com>2016-04-04 17:03:58 +0000
commitcdaf1df6579f0b932db4f4a29b176bab74305ae5 (patch)
tree8ba9e073b1e639613a66ef47cc8984f937e60775 /llvm/lib
parent4b35a64cb10f16093601c0e3e3b2ea242b741c70 (diff)
downloadbcm5719-llvm-cdaf1df6579f0b932db4f4a29b176bab74305ae5.tar.gz
bcm5719-llvm-cdaf1df6579f0b932db4f4a29b176bab74305ae5.zip
Fix unused var warning caused by r265309.
llvm-svn: 265312
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/InlineSpiller.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp
index ac4c43b2fb0..e8abb3d0263 100644
--- a/llvm/lib/CodeGen/InlineSpiller.cpp
+++ b/llvm/lib/CodeGen/InlineSpiller.cpp
@@ -54,7 +54,6 @@ static cl::opt<bool> 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<LiveIntervals>()),
+ : LIS(pass.getAnalysis<LiveIntervals>()),
LSS(pass.getAnalysis<LiveStacks>()),
AA(&pass.getAnalysis<AAResultsWrapperPass>().getAAResults()),
MDT(pass.getAnalysis<MachineDominatorTree>()),
@@ -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);
OpenPOWER on IntegriCloud