diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-20 23:30:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-20 23:30:28 +0000 |
commit | 3c5bf713535ee1fdfb75b5a1067d8d9cfa344556 (patch) | |
tree | 6f686f5a93265ef03c08e602bceb72545c617825 /llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp | |
parent | 177934e02151d58f5837ee31478e349de6ae2c6b (diff) | |
download | bcm5719-llvm-3c5bf713535ee1fdfb75b5a1067d8d9cfa344556.tar.gz bcm5719-llvm-3c5bf713535ee1fdfb75b5a1067d8d9cfa344556.zip |
simplify this code.
llvm-svn: 94048
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp b/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp index 94b0671c5b0..5650150218c 100644 --- a/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp @@ -130,7 +130,7 @@ bool OptimalEdgeProfiler::runOnModule(Module &M) { // actual MST is returned but the edges _not_ in the MST. ProfileInfo::EdgeWeights ECs = - getAnalysisID<ProfileInfo>(ProfileEstimatorPassID, *F).getEdgeWeights(F); + getAnalysis<ProfileInfo>(*F).getEdgeWeights(F); std::vector<ProfileInfo::EdgeWeight> EdgeVector(ECs.begin(), ECs.end()); MaximumSpanningTree<BasicBlock> MST (EdgeVector); std::stable_sort(MST.begin(),MST.end()); |