mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Remove use of Instruction::getNext
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36201 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -336,7 +336,9 @@ void LoadVN::getEqualNumberNodes(Value *V,
|
||||
// we see any candidate loads, then we know they have the same value # as LI.
|
||||
//
|
||||
bool LoadInvalidatedInBBAfter = false;
|
||||
for (BasicBlock::iterator I = LI->getNext(); I != LoadBB->end(); ++I) {
|
||||
{
|
||||
BasicBlock::iterator I = LI;
|
||||
for (++I; I != LoadBB->end(); ++I) {
|
||||
// If this instruction is a load, then this instruction returns the same
|
||||
// value as LI.
|
||||
if (isa<LoadInst>(I) && cast<LoadInst>(I)->getOperand(0) == LoadPtr)
|
||||
@@ -347,6 +349,7 @@ void LoadVN::getEqualNumberNodes(Value *V,
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If the pointer is clobbered on entry and on exit to the function, there is
|
||||
// no need to do any global analysis at all.
|
||||
|
Reference in New Issue
Block a user