mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 15:38:57 +00:00
Make this a bit more aggressive
llvm-svn: 20792
This commit is contained in:
parent
03631d6bc4
commit
db762dadcb
@ -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
|
||||
// modify the memory location.
|
||||
if ((Mask & Mod) && AA->pointsToConstantMemory(P))
|
||||
Mask = Ref;
|
||||
Mask = ModRefResult(Mask & ~Mod);
|
||||
|
||||
return ModRefResult(Mask & AA->getModRefInfo(CS, P, Size));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user