projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a21c245
)
[GlobalsAA] Remove unnecessary AAResultBase fallback (NFC)
author
Nikita Popov
<npopov@redhat.com>
Mon, 1 Aug 2022 06:34:12 +0000
(08:34 +0200)
committer
Nikita 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
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/GlobalsModRef.cpp
b/llvm/lib/Analysis/GlobalsModRef.cpp
index
b1b6790
..
99769c1
100644
(file)
--- 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(