mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-31 17:42:40 +00:00
Rename a member variable to be more accurate with how it is used
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260389 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff47e0a2ba
commit
a70447cea6
@ -555,7 +555,7 @@ private:
|
||||
Function &F;
|
||||
|
||||
// Memory SSA mappings
|
||||
DenseMap<const Value *, MemoryAccess *> InstructionToMemoryAccess;
|
||||
DenseMap<const Value *, MemoryAccess *> ValueToMemoryAccess;
|
||||
AccessMap PerBlockAccesses;
|
||||
std::unique_ptr<MemoryAccess> LiveOnEntryDef;
|
||||
|
||||
|
@ -320,7 +320,7 @@ MemorySSAWalker *MemorySSA::buildMemorySSA(AliasAnalysis *AA,
|
||||
// Insert phi node
|
||||
AccessListType *Accesses = getOrCreateAccessList(BB);
|
||||
MemoryPhi *Phi = new MemoryPhi(F.getContext(), BB, NextID++);
|
||||
InstructionToMemoryAccess.insert(std::make_pair(BB, Phi));
|
||||
ValueToMemoryAccess.insert(std::make_pair(BB, Phi));
|
||||
// Phi's always are placed at the front of the block.
|
||||
Accesses->push_front(Phi);
|
||||
}
|
||||
@ -375,12 +375,10 @@ MemoryAccess *MemorySSA::createNewAccess(Instruction *I, bool IgnoreNonMemory) {
|
||||
|
||||
MemoryUseOrDef *MA;
|
||||
if (Def)
|
||||
MA = new MemoryDef(I->getContext(), nullptr, I, I->getParent(),
|
||||
NextID++);
|
||||
MA = new MemoryDef(I->getContext(), nullptr, I, I->getParent(), NextID++);
|
||||
else
|
||||
MA =
|
||||
new MemoryUse(I->getContext(), nullptr, I, I->getParent());
|
||||
InstructionToMemoryAccess.insert(std::make_pair(I, MA));
|
||||
MA = new MemoryUse(I->getContext(), nullptr, I, I->getParent());
|
||||
ValueToMemoryAccess.insert(std::make_pair(I, MA));
|
||||
return MA;
|
||||
}
|
||||
|
||||
@ -533,7 +531,7 @@ void MemorySSA::verifyDefUses(Function &F) const {
|
||||
}
|
||||
|
||||
MemoryAccess *MemorySSA::getMemoryAccess(const Value *I) const {
|
||||
return InstructionToMemoryAccess.lookup(I);
|
||||
return ValueToMemoryAccess.lookup(I);
|
||||
}
|
||||
|
||||
MemoryPhi *MemorySSA::getMemoryAccess(const BasicBlock *BB) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user