mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Generalize some alias analysis logic from atomic
intrinsics to any IntrWriteArgMem intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64551 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -124,8 +124,13 @@ AliasAnalysis::getModRefBehavior(Function *F,
|
||||
if (F->doesNotAccessMemory())
|
||||
// Can't do better than this.
|
||||
return DoesNotAccessMemory;
|
||||
else if (F->onlyReadsMemory())
|
||||
if (F->onlyReadsMemory())
|
||||
return OnlyReadsMemory;
|
||||
if (unsigned id = F->getIntrinsicID()) {
|
||||
#define GET_INTRINSIC_MODREF_BEHAVIOR
|
||||
#include "llvm/Intrinsics.gen"
|
||||
#undef GET_INTRINSIC_MODREF_BEHAVIOR
|
||||
}
|
||||
}
|
||||
return UnknownModRefBehavior;
|
||||
}
|
||||
|
Reference in New Issue
Block a user