diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-09 16:00:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-09 16:00:57 +0000 |
commit | 273a488cdfe27aee58a3774579376d4b8f791012 (patch) | |
tree | edd54ecb2576c1b67faabe4c6d85e74799bc1c20 /lib/Transforms | |
parent | 607a0508ba5732716809b926a271a9152bdcec12 (diff) | |
download | external_llvm-273a488cdfe27aee58a3774579376d4b8f791012.zip external_llvm-273a488cdfe27aee58a3774579376d4b8f791012.tar.gz external_llvm-273a488cdfe27aee58a3774579376d4b8f791012.tar.bz2 |
revert r81335, which breaks the build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp b/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp index b2e6747..cdaf5f1 100644 --- a/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp +++ b/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp @@ -18,7 +18,6 @@ #include "llvm/Pass.h" #include "llvm/Analysis/Passes.h" #include "llvm/Analysis/ProfileInfo.h" -#include "llvm/Analysis/ProfileInfoLoader.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/Debug.h" @@ -114,8 +113,8 @@ bool OptimalEdgeProfiler::runOnModule(Module &M) { NumEdgesInserted = 0; std::vector<Constant*> Initializer(NumEdges); - Constant* Zero = ConstantInt::get(Int32, 0); - Constant* Uncounted = ConstantInt::get(Int32, ProfileInfoLoader::Uncounted); + Constant* zeroc = ConstantInt::get(Int32, 0); + Constant* minusonec = ConstantInt::get(Int32, ProfileInfo::MissingValue); // Instrument all of the edges not in MST... unsigned i = 0; @@ -145,9 +144,9 @@ bool OptimalEdgeProfiler::runOnModule(Module &M) { if (!std::binary_search(MST.begin(), MST.end(), edge)) { printEdgeCounter(edge,entry,i); IncrementCounterInBlock(entry, i, Counters); NumEdgesInserted++; - Initializer[i++] = (Zero); + Initializer[i++] = (zeroc); } else{ - Initializer[i++] = (Uncounted); + Initializer[i++] = (minusonec); } // InsertedBlocks contains all blocks that were inserted for splitting an @@ -168,9 +167,9 @@ bool OptimalEdgeProfiler::runOnModule(Module &M) { if (!std::binary_search(MST.begin(), MST.end(), edge)) { printEdgeCounter(edge,BB,i); IncrementCounterInBlock(BB, i, Counters); NumEdgesInserted++; - Initializer[i++] = (Zero); + Initializer[i++] = (zeroc); } else{ - Initializer[i++] = (Uncounted); + Initializer[i++] = (minusonec); } } for (unsigned s = 0, e = TI->getNumSuccessors(); s != e; ++s) { @@ -196,9 +195,9 @@ bool OptimalEdgeProfiler::runOnModule(Module &M) { printEdgeCounter(edge,Succ,i); IncrementCounterInBlock(Succ, i, Counters); NumEdgesInserted++; } - Initializer[i++] = (Zero); + Initializer[i++] = (zeroc); } else { - Initializer[i++] = (Uncounted); + Initializer[i++] = (minusonec); } } } |