mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-02 09:33:59 +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:
parent
65512d2525
commit
d433bde071
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user