mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Use SmallVectorImpl::iterator/const_iterator instead of SmallVector to avoid specifying the vector size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1555,7 +1555,7 @@ bool GVN::PerformLoadPRE(LoadInst *LI, AvailValInBlkVect &ValuesPerBlock,
|
||||
return false;
|
||||
|
||||
// Split critical edges, and update the unavailable predecessors accordingly.
|
||||
for (SmallVector<BasicBlock *, 4>::iterator I = CriticalEdgePred.begin(),
|
||||
for (SmallVectorImpl<BasicBlock *>::iterator I = CriticalEdgePred.begin(),
|
||||
E = CriticalEdgePred.end(); I != E; I++) {
|
||||
BasicBlock *OrigPred = *I;
|
||||
BasicBlock *NewPred = splitCriticalEdges(OrigPred, LoadBB);
|
||||
@@ -2352,7 +2352,7 @@ bool GVN::processBlock(BasicBlock *BB) {
|
||||
if (!AtStart)
|
||||
--BI;
|
||||
|
||||
for (SmallVector<Instruction*, 4>::iterator I = InstrsToErase.begin(),
|
||||
for (SmallVectorImpl<Instruction *>::iterator I = InstrsToErase.begin(),
|
||||
E = InstrsToErase.end(); I != E; ++I) {
|
||||
DEBUG(dbgs() << "GVN removed: " << **I << '\n');
|
||||
if (MD) MD->removeInstruction(*I);
|
||||
|
||||
Reference in New Issue
Block a user