mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +00:00
cache result of operator*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107975 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -277,11 +277,13 @@ BasicBlock *llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum,
|
|||||||
OtherPreds.push_back(PN->getIncomingBlock(i));
|
OtherPreds.push_back(PN->getIncomingBlock(i));
|
||||||
} else {
|
} else {
|
||||||
for (pred_iterator I = pred_begin(DestBB), E = pred_end(DestBB);
|
for (pred_iterator I = pred_begin(DestBB), E = pred_end(DestBB);
|
||||||
I != E; ++I)
|
I != E; ++I) {
|
||||||
if (*I != NewBB)
|
BasicBlock *P = *I;
|
||||||
OtherPreds.push_back(*I);
|
if (P != NewBB)
|
||||||
|
OtherPreds.push_back(P);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NewBBDominatesDestBB = true;
|
bool NewBBDominatesDestBB = true;
|
||||||
|
|
||||||
// Should we update DominatorTree information?
|
// Should we update DominatorTree information?
|
||||||
|
Reference in New Issue
Block a user