diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-03 23:40:10 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-03 23:40:10 +0000 |
commit | b5f25967d0fe2380c21cdfe220e1aa0f5e6043d2 (patch) | |
tree | 6ab933c234f63cd59c804de0979df7228a46130e /lib/Analysis/ProfileInfoLoaderPass.cpp | |
parent | 6e7ad958683f34bf6c014c88fef723e5a2d741be (diff) |
Revert "--- Reverse-merging r80908 into '.':", I already "fixed" this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ProfileInfoLoaderPass.cpp')
-rw-r--r-- | lib/Analysis/ProfileInfoLoaderPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ProfileInfoLoaderPass.cpp b/lib/Analysis/ProfileInfoLoaderPass.cpp index 1a2332c0e9..e79dd8c0c2 100644 --- a/lib/Analysis/ProfileInfoLoaderPass.cpp +++ b/lib/Analysis/ProfileInfoLoaderPass.cpp @@ -159,7 +159,7 @@ void LoaderPass::recurseBasicBlock(const BasicBlock *BB) { void LoaderPass::readOrRememberEdge(ProfileInfo::Edge e, unsigned weight, unsigned ei, Function *F) { - if (weight != (unsigned)MissingValue) { + if (weight != ~0U) { EdgeInformation[F][e] += weight; DEBUG(errs()<<"--Read Edge Counter for " << e <<" (# "<<ei<<"): "<<(unsigned)getEdgeWeight(e)<<"\n"); |