[llvm-commits] [llvm] r94048 - /llvm/trunk/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp
Chris Lattner
sabre at nondot.org
Wed Jan 20 15:30:28 PST 2010
Author: lattner
Date: Wed Jan 20 17:30:28 2010
New Revision: 94048
URL: http://llvm.org/viewvc/llvm-project?rev=94048&view=rev
Log:
simplify this code.
Modified:
llvm/trunk/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp?rev=94048&r1=94047&r2=94048&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp Wed Jan 20 17:30:28 2010
@@ -130,7 +130,7 @@
// 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());
More information about the llvm-commits
mailing list