Clean up of the comments, and a first attempt to better describe a part of the algorithm.
Details
Diff Detail
Event Timeline
lib/CodeGen/MachineBlockPlacement.cpp | ||
---|---|---|
616 | yes, it should be freq(BB->Succ) which is the same as freq(S->BB) | |
620 | This paragraph can be changed to: if we have profile data (i.e, branch probabilities can be trusted), the cost (number of taken branches) with layout S->BB->Succ->Pred is 2 * freq(S->Pred) while the cost of topo order is freq(S->Pred) + freq(S->BB). We know Prob(S->BB) > Prob(S->Pred), so freq(S->BB) > freq(S->Pred), which means the cost of topological order is greater ... |
yes, it should be freq(BB->Succ) which is the same as freq(S->BB)