mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
cache result of operator*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107983 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ba992ad52
commit
bf2eefdb0d
@ -617,8 +617,10 @@ LoopSimplify::InsertUniqueBackedgeBlock(Loop *L, BasicBlock *Preheader) {
|
||||
|
||||
// Figure out which basic blocks contain back-edges to the loop header.
|
||||
std::vector<BasicBlock*> BackedgeBlocks;
|
||||
for (pred_iterator I = pred_begin(Header), E = pred_end(Header); I != E; ++I)
|
||||
if (*I != Preheader) BackedgeBlocks.push_back(*I);
|
||||
for (pred_iterator I = pred_begin(Header), E = pred_end(Header); I != E; ++I){
|
||||
BasicBlock *P = *I;
|
||||
if (P != Preheader) BackedgeBlocks.push_back(P);
|
||||
}
|
||||
|
||||
// Create and insert the new backedge block...
|
||||
BasicBlock *BEBlock = BasicBlock::Create(Header->getContext(),
|
||||
|
Loading…
Reference in New Issue
Block a user