mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
keep in 80 cols
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109122 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -148,15 +148,16 @@ ReprocessLoop:
|
||||
BB != E; ++BB) {
|
||||
if (*BB == L->getHeader()) continue;
|
||||
|
||||
SmallPtrSet<BasicBlock *, 4> BadPreds;
|
||||
for (pred_iterator PI = pred_begin(*BB), PE = pred_end(*BB); PI != PE; ++PI){
|
||||
SmallPtrSet<BasicBlock*, 4> BadPreds;
|
||||
for (pred_iterator PI = pred_begin(*BB),
|
||||
PE = pred_end(*BB); PI != PE; ++PI) {
|
||||
BasicBlock *P = *PI;
|
||||
if (!L->contains(P))
|
||||
BadPreds.insert(P);
|
||||
}
|
||||
|
||||
// Delete each unique out-of-loop (and thus dead) predecessor.
|
||||
for (SmallPtrSet<BasicBlock *, 4>::iterator I = BadPreds.begin(),
|
||||
for (SmallPtrSet<BasicBlock*, 4>::iterator I = BadPreds.begin(),
|
||||
E = BadPreds.end(); I != E; ++I) {
|
||||
|
||||
DEBUG(dbgs() << "LoopSimplify: Deleting edge from dead predecessor ";
|
||||
|
Reference in New Issue
Block a user