mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
[PM/AA] Remove the Location typedef from the AliasAnalysis class now
that it is its own entity in the form of MemoryLocation, and update all the callers. This is an entirely mechanical change. References to "Location" within AA subclases become "MemoryLocation", and elsewhere "AliasAnalysis::Location" becomes "MemoryLocation". Hope that helps out-of-tree folks update. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239885 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -510,7 +510,7 @@ bool MemCpyOpt::processStore(StoreInst *SI, BasicBlock::iterator &BBI) {
|
||||
// Check that nothing touches the dest of the "copy" between
|
||||
// the call and the store.
|
||||
AliasAnalysis &AA = getAnalysis<AliasAnalysis>();
|
||||
AliasAnalysis::Location StoreLoc = MemoryLocation::get(SI);
|
||||
MemoryLocation StoreLoc = MemoryLocation::get(SI);
|
||||
for (BasicBlock::iterator I = --BasicBlock::iterator(SI),
|
||||
E = C; I != E; --I) {
|
||||
if (AA.getModRefInfo(&*I, StoreLoc) != AliasAnalysis::NoModRef) {
|
||||
@@ -997,7 +997,7 @@ bool MemCpyOpt::processMemCpy(MemCpyInst *M) {
|
||||
}
|
||||
}
|
||||
|
||||
AliasAnalysis::Location SrcLoc = MemoryLocation::getForSource(M);
|
||||
MemoryLocation SrcLoc = MemoryLocation::getForSource(M);
|
||||
MemDepResult SrcDepInfo = MD->getPointerDependencyFrom(SrcLoc, true,
|
||||
M, M->getParent());
|
||||
|
||||
@@ -1075,10 +1075,9 @@ bool MemCpyOpt::processByValArgument(CallSite CS, unsigned ArgNo) {
|
||||
Value *ByValArg = CS.getArgument(ArgNo);
|
||||
Type *ByValTy = cast<PointerType>(ByValArg->getType())->getElementType();
|
||||
uint64_t ByValSize = DL.getTypeAllocSize(ByValTy);
|
||||
MemDepResult DepInfo =
|
||||
MD->getPointerDependencyFrom(AliasAnalysis::Location(ByValArg, ByValSize),
|
||||
true, CS.getInstruction(),
|
||||
CS.getInstruction()->getParent());
|
||||
MemDepResult DepInfo = MD->getPointerDependencyFrom(
|
||||
MemoryLocation(ByValArg, ByValSize), true, CS.getInstruction(),
|
||||
CS.getInstruction()->getParent());
|
||||
if (!DepInfo.isClobber())
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user