aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/IPO/SampleProfile.cpp
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2015-10-26 20:50:26 +0000
committerDiego Novillo <dnovillo@google.com>2015-10-26 20:50:26 +0000
commite822b63681cc525f957a9ebade0f70a2dd19cdeb (patch)
tree0431a9171cf282fafe70a776e289d886457580fc /llvm/lib/Transforms/IPO/SampleProfile.cpp
parent56fff8d39428011d832bcfda7dc758da495e81a4 (diff)
downloadllvm-e822b63681cc525f957a9ebade0f70a2dd19cdeb.zip
llvm-e822b63681cc525f957a9ebade0f70a2dd19cdeb.tar.gz
llvm-e822b63681cc525f957a9ebade0f70a2dd19cdeb.tar.bz2
Remove unused local variable. NFC.
llvm-svn: 251344
Diffstat (limited to 'llvm/lib/Transforms/IPO/SampleProfile.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/SampleProfile.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/SampleProfile.cpp b/llvm/lib/Transforms/IPO/SampleProfile.cpp
index 29fc926..6ab73450 100644
--- a/llvm/lib/Transforms/IPO/SampleProfile.cpp
+++ b/llvm/lib/Transforms/IPO/SampleProfile.cpp
@@ -748,7 +748,6 @@ void SampleProfileLoader::propagateWeights(Function &F) {
<< 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::propagateWeights(Function &F) {
if (Weight != 0) {
if (Weight > MaxWeight) {
MaxWeight = Weight;
- MaxDestBB = Succ;
MaxDestLoc = Succ->getFirstNonPHIOrDbgOrLifetime()->getDebugLoc();
}
}