mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Remove braces around single-statement block and rangify outer loop.
This is a follow-up to r213474. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213475 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a4697dad19
commit
e5166cce67
@ -528,12 +528,9 @@ void BranchProbabilityInfo::print(raw_ostream &OS, const Module *) const {
|
||||
// We print the probabilities from the last function the analysis ran over,
|
||||
// or the function it is currently running over.
|
||||
assert(LastF && "Cannot print prior to running over a function");
|
||||
for (Function::const_iterator BI = LastF->begin(), BE = LastF->end();
|
||||
BI != BE; ++BI) {
|
||||
for (const BasicBlock *Succ : successors(BI)) {
|
||||
printEdgeProbability(OS << " ", BI, Succ);
|
||||
}
|
||||
}
|
||||
for (const BasicBlock &BB : *LastF)
|
||||
for (const BasicBlock *Succ : successors(&BB))
|
||||
printEdgeProbability(OS << " ", &BB, Succ);
|
||||
}
|
||||
|
||||
uint32_t BranchProbabilityInfo::getSumForBlock(const BasicBlock *BB) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user