[llvm] r251344 - Remove unused local variable. NFC.
Diego Novillo via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 26 13:50:26 PDT 2015
Author: dnovillo
Date: Mon Oct 26 15:50:26 2015
New Revision: 251344
URL: http://llvm.org/viewvc/llvm-project?rev=251344&view=rev
Log:
Remove unused local variable. NFC.
Modified:
llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp
Modified: llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp?rev=251344&r1=251343&r2=251344&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp Mon Oct 26 15:50:26 2015
@@ -748,7 +748,6 @@ void SampleProfileLoader::propagateWeigh
<< TI->getDebugLoc().getLine() << ".\n");
SmallVector<uint32_t, 4> Weights;
uint32_t MaxWeight = 0;
- BasicBlock *MaxDestBB = nullptr;
DebugLoc MaxDestLoc;
for (unsigned I = 0; I < TI->getNumSuccessors(); ++I) {
BasicBlock *Succ = TI->getSuccessor(I);
@@ -766,7 +765,6 @@ void SampleProfileLoader::propagateWeigh
if (Weight != 0) {
if (Weight > MaxWeight) {
MaxWeight = Weight;
- MaxDestBB = Succ;
MaxDestLoc = Succ->getFirstNonPHIOrDbgOrLifetime()->getDebugLoc();
}
}
More information about the llvm-commits
mailing list