mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +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:
@ -2914,7 +2914,7 @@ void SelectionDAGBuilder::visitLoad(const LoadInst &I) {
|
||||
// Serialize volatile loads with other side effects.
|
||||
Root = getRoot();
|
||||
else if (AA->pointsToConstantMemory(
|
||||
AliasAnalysis::Location(SV, AA->getTypeStoreSize(Ty), AAInfo))) {
|
||||
MemoryLocation(SV, AA->getTypeStoreSize(Ty), AAInfo))) {
|
||||
// Do not serialize (non-volatile) loads of constant memory with anything.
|
||||
Root = DAG.getEntryNode();
|
||||
ConstantMemory = true;
|
||||
@ -3163,10 +3163,8 @@ void SelectionDAGBuilder::visitMaskedLoad(const CallInst &I) {
|
||||
const MDNode *Ranges = I.getMetadata(LLVMContext::MD_range);
|
||||
|
||||
SDValue InChain = DAG.getRoot();
|
||||
if (AA->pointsToConstantMemory(
|
||||
AliasAnalysis::Location(PtrOperand,
|
||||
AA->getTypeStoreSize(I.getType()),
|
||||
AAInfo))) {
|
||||
if (AA->pointsToConstantMemory(MemoryLocation(
|
||||
PtrOperand, AA->getTypeStoreSize(I.getType()), AAInfo))) {
|
||||
// Do not serialize (non-volatile) loads of constant memory with anything.
|
||||
InChain = DAG.getEntryNode();
|
||||
}
|
||||
@ -3208,10 +3206,9 @@ void SelectionDAGBuilder::visitMaskedGather(const CallInst &I) {
|
||||
Value *BasePtr = Ptr;
|
||||
bool UniformBase = getUniformBase(BasePtr, Base, Index, this);
|
||||
bool ConstantMemory = false;
|
||||
if (UniformBase && AA->pointsToConstantMemory(
|
||||
AliasAnalysis::Location(BasePtr,
|
||||
AA->getTypeStoreSize(I.getType()),
|
||||
AAInfo))) {
|
||||
if (UniformBase &&
|
||||
AA->pointsToConstantMemory(
|
||||
MemoryLocation(BasePtr, AA->getTypeStoreSize(I.getType()), AAInfo))) {
|
||||
// Do not serialize (non-volatile) loads of constant memory with anything.
|
||||
Root = DAG.getEntryNode();
|
||||
ConstantMemory = true;
|
||||
|
Reference in New Issue
Block a user