mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 01:14:12 +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:
parent
5896935423
commit
7556cf541b
@ -277,11 +277,13 @@ BasicBlock *llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum,
|
||||
OtherPreds.push_back(PN->getIncomingBlock(i));
|
||||
} else {
|
||||
for (pred_iterator I = pred_begin(DestBB), E = pred_end(DestBB);
|
||||
I != E; ++I)
|
||||
if (*I != NewBB)
|
||||
OtherPreds.push_back(*I);
|
||||
I != E; ++I) {
|
||||
BasicBlock *P = *I;
|
||||
if (P != NewBB)
|
||||
OtherPreds.push_back(P);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool NewBBDominatesDestBB = true;
|
||||
|
||||
// Should we update DominatorTree information?
|
||||
|
Loading…
Reference in New Issue
Block a user