diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-16 21:03:24 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-16 21:03:24 +0000 | 
| commit | 7c7aba6e5fef47a01a136be655b0a92cfd7090f6 (patch) | |
| tree | 99ec531924f6078534b100ab9d7696abce848099 /lib/CodeGen/MachineBlockPlacement.cpp | |
| parent | 7ab83427af0f77b59941ceba41d509d7d097b065 (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/MachineBlockPlacement.cpp')
| -rw-r--r-- | lib/CodeGen/MachineBlockPlacement.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/MachineBlockPlacement.cpp b/lib/CodeGen/MachineBlockPlacement.cpp index fc52b0da0d613..2d4b95974cc64 100644 --- a/lib/CodeGen/MachineBlockPlacement.cpp +++ b/lib/CodeGen/MachineBlockPlacement.cpp @@ -594,8 +594,8 @@ BranchProbability MachineBlockPlacement::collectViableSuccessors(    // Assume A->C is very hot (>90%), and C->D has a 50% probability, then after    // A->C is chosen as a fall-through, D won't be selected as a successor of C    // due to CFG constraint (the probability of C->D is not greater than -  // HotProb to break top-order). If we exclude E that is not in BlockFilter -  // when calculating the  probability of C->D, D will be selected and we +  // HotProb to break topo-order). If we exclude E that is not in BlockFilter +  // when calculating the probability of C->D, D will be selected and we    // will get A C D B as the layout of this loop.    auto AdjustedSumProb = BranchProbability::getOne();    for (MachineBasicBlock *Succ : BB->successors()) { @@ -1156,7 +1156,7 @@ void MachineBlockPlacement::precomputeTriangleChains() {        continue;      // Now we have an interesting triangle. Insert it if it's not part of an -    // existing chain +    // existing chain.      // Note: This cannot be replaced with a call insert() or emplace() because      // the find key is BB, but the insert/emplace key is PDom.      auto Found = TriangleChainMap.find(&BB); @@ -1298,9 +1298,9 @@ bool MachineBlockPlacement::hasBetterLayoutPredecessor(    //       |    |                             |  |    //    ---BB   |                             |  BB    //    |       |                             |  | -  //    |  pred--                             |  Succ-- +  //    |  Pred--                             |  Succ--    //    |  |                                  |       | -  //    ---succ                               ---pred-- +  //    ---Succ                               ---Pred--    //    // cost = freq(S->Pred) + freq(BB->Succ)    cost = 2 * freq (S->Pred)    //      = freq(S->Pred) + freq(S->BB)  | 
