mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
cache dereferenced iterators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108131 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -476,10 +476,11 @@ bool TailCallElim::ProcessReturningBlock(ReturnInst *Ret, BasicBlock *&OldEntry,
|
||||
// it will not show up as a predecessor.
|
||||
for (pred_iterator PI = pred_begin(OldEntry), PE = pred_end(OldEntry);
|
||||
PI != PE; ++PI) {
|
||||
if (*PI == &F->getEntryBlock())
|
||||
AccPN->addIncoming(AccumulatorRecursionEliminationInitVal, *PI);
|
||||
BasicBlock *P = *PI;
|
||||
if (P == &F->getEntryBlock())
|
||||
AccPN->addIncoming(AccumulatorRecursionEliminationInitVal, P);
|
||||
else
|
||||
AccPN->addIncoming(AccPN, *PI);
|
||||
AccPN->addIncoming(AccPN, P);
|
||||
}
|
||||
|
||||
// Add an incoming argument for the current block, which is computed by our
|
||||
|
Reference in New Issue
Block a user