mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 13:10:34 +00:00
Reintroduce these asserts, now that BasicAA is a normal AliasAnalysis pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117266 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
17a0bf996f
commit
852dda4625
@ -67,8 +67,7 @@ void AliasAnalysis::copyValue(Value *From, Value *To) {
|
||||
AliasAnalysis::ModRefResult
|
||||
AliasAnalysis::getModRefInfo(ImmutableCallSite CS,
|
||||
const Location &Loc) {
|
||||
// Don't assert AA because BasicAA calls us in order to make use of the
|
||||
// logic here.
|
||||
assert(AA && "AA didn't call InitializeAliasAnalysis in its run method!");
|
||||
|
||||
ModRefBehavior MRB = getModRefBehavior(CS);
|
||||
if (MRB == DoesNotAccessMemory)
|
||||
@ -105,8 +104,7 @@ AliasAnalysis::getModRefInfo(ImmutableCallSite CS,
|
||||
|
||||
AliasAnalysis::ModRefResult
|
||||
AliasAnalysis::getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2) {
|
||||
// Don't assert AA because BasicAA calls us in order to make use of the
|
||||
// logic here.
|
||||
assert(AA && "AA didn't call InitializeAliasAnalysis in its run method!");
|
||||
|
||||
// If CS1 or CS2 are readnone, they don't interact.
|
||||
ModRefBehavior CS1B = getModRefBehavior(CS1);
|
||||
@ -164,8 +162,7 @@ AliasAnalysis::getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2) {
|
||||
|
||||
AliasAnalysis::ModRefBehavior
|
||||
AliasAnalysis::getModRefBehavior(ImmutableCallSite CS) {
|
||||
// Don't assert AA because BasicAA calls us in order to make use of the
|
||||
// logic here.
|
||||
assert(AA && "AA didn't call InitializeAliasAnalysis in its run method!");
|
||||
|
||||
ModRefBehavior Min = UnknownModRefBehavior;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user