mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Make this a bit more aggressive
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20792 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -125,7 +125,7 @@ AliasAnalysis::getModRefInfo(CallSite CS, Value *P, unsigned Size) {
|
|||||||
// If P points to a constant memory location, the call definitely could not
|
// If P points to a constant memory location, the call definitely could not
|
||||||
// modify the memory location.
|
// modify the memory location.
|
||||||
if ((Mask & Mod) && AA->pointsToConstantMemory(P))
|
if ((Mask & Mod) && AA->pointsToConstantMemory(P))
|
||||||
Mask = Ref;
|
Mask = ModRefResult(Mask & ~Mod);
|
||||||
|
|
||||||
return ModRefResult(Mask & AA->getModRefInfo(CS, P, Size));
|
return ModRefResult(Mask & AA->getModRefInfo(CS, P, Size));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user