diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-08 18:59:03 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-08 18:59:03 +0000 |
commit | 2f140834cf7bbdc859389bb749920bc65451817d (patch) | |
tree | 79799d5198628c597a6e08e1312a8e258387550f /llvm/lib/Analysis/ProfileInfoLoaderPass.cpp | |
parent | 003a1b1c1da44db9ae4b3e70fc9b382369276016 (diff) | |
download | bcm5719-llvm-2f140834cf7bbdc859389bb749920bc65451817d.tar.gz bcm5719-llvm-2f140834cf7bbdc859389bb749920bc65451817d.zip |
Some ProfileInfo cleanups.
- Part of optimal static profiling patch sequence by Andreas Neustifter.
llvm-svn: 78485
Diffstat (limited to 'llvm/lib/Analysis/ProfileInfoLoaderPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/ProfileInfoLoaderPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp b/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp index c1dc9f2e472..3e75f0274b2 100644 --- a/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp +++ b/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp @@ -77,7 +77,7 @@ bool LoaderPass::runOnModule(Module &M) { for (Module::iterator F = M.begin(), E = M.end(); F != E; ++F) { if (F->isDeclaration()) continue; if (ei < ECs.size()) - EdgeInformation[F][ProfileInfo::getEdge(0,&F->getEntryBlock())] += + EdgeInformation[F][ProfileInfo::getEdge(0, &F->getEntryBlock())] += ECs[ei++]; for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) { // Okay, we have to add a counter of each outgoing edge. If the |