[GlobalsAA] Remove unnecessary AAResultBase fallback (NFC)

This is unnecessary, as AA result chaining is implemented at a
higher level now.
This commit is contained in:
Nikita Popov 2022-08-01 08:34:12 +02:00
parent a21c245307
commit 4ec22ba9c8
1 changed files with 1 additions and 3 deletions

View File

@ -941,9 +941,7 @@ ModRefInfo GlobalsAAResult::getModRefInfo(const CallBase *Call,
Known = unionModRef(FI->getModRefInfoForGlobal(*GV),
getModRefInfoForArgument(Call, GV, AAQI));
if (!isModOrRefSet(Known))
return ModRefInfo::NoModRef; // No need to query other mod/ref analyses
return intersectModRef(Known, AAResultBase::getModRefInfo(Call, Loc, AAQI));
return Known;
}
GlobalsAAResult::GlobalsAAResult(