[GlobalsAA] Remove unnecessary AAResultBase fallback (NFC)
authorNikita Popov <npopov@redhat.com>
Mon, 1 Aug 2022 06:34:12 +0000 (08:34 +0200)
committerNikita Popov <npopov@redhat.com>
Mon, 1 Aug 2022 06:34:58 +0000 (08:34 +0200)
This is unnecessary, as AA result chaining is implemented at a
higher level now.

llvm/lib/Analysis/GlobalsModRef.cpp

index b1b6790..99769c1 100644 (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(