mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-14 15:25:25 +00:00
Make ModRefBehavior a lattice. Use this to clean up AliasAnalysis
chaining and simplify FunctionAttrs' GetModRefBehavior logic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118660 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -179,7 +179,7 @@ AliasAnalysis::getModRefBehavior(ImmutableCallSite CS) {
|
||||
|
||||
// Otherwise, fall back to the next AA in the chain. But we can merge
|
||||
// in any result we've managed to compute.
|
||||
return std::min(AA->getModRefBehavior(CS), Min);
|
||||
return ModRefBehavior(AA->getModRefBehavior(CS) & Min);
|
||||
}
|
||||
|
||||
AliasAnalysis::ModRefBehavior
|
||||
|
Reference in New Issue
Block a user