[llvm] 4ec22ba - [GlobalsAA] Remove unnecessary AAResultBase fallback (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 31 23:35:09 PDT 2022
Author: Nikita Popov
Date: 2022-08-01T08:34:58+02:00
New Revision: 4ec22ba9c88655fdf676008d6755ec71185099be
URL: https://github.com/llvm/llvm-project/commit/4ec22ba9c88655fdf676008d6755ec71185099be
DIFF: https://github.com/llvm/llvm-project/commit/4ec22ba9c88655fdf676008d6755ec71185099be.diff
LOG: [GlobalsAA] Remove unnecessary AAResultBase fallback (NFC)
This is unnecessary, as AA result chaining is implemented at a
higher level now.
Added:
Modified:
llvm/lib/Analysis/GlobalsModRef.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/GlobalsModRef.cpp b/llvm/lib/Analysis/GlobalsModRef.cpp
index b1b6790dea7e..99769c1b78de 100644
--- a/llvm/lib/Analysis/GlobalsModRef.cpp
+++ b/llvm/lib/Analysis/GlobalsModRef.cpp
@@ -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(
More information about the llvm-commits
mailing list