mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
simplify this code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94048 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf2013ee22
commit
0527344853
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user