summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/AliasSetTracker.cpp
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2019-01-28 19:01:32 +0000
committerAlina Sbirlea <asbirlea@google.com>2019-01-28 19:01:32 +0000
commitd8c829bc2215700263e18f9896d5c6ed1e889ad7 (patch)
tree76bf710da3af330798a77ce9aa820d64eabaf749 /llvm/lib/Analysis/AliasSetTracker.cpp
parent31e2acc3b523565e30aa01ea2c4ab0cc575a5e64 (diff)
downloadbcm5719-llvm-d8c829bc2215700263e18f9896d5c6ed1e889ad7.tar.gz
bcm5719-llvm-d8c829bc2215700263e18f9896d5c6ed1e889ad7.zip
[AliasSetTracker] Cleanup comments. [NFCI]
llvm-svn: 352406
Diffstat (limited to 'llvm/lib/Analysis/AliasSetTracker.cpp')
-rw-r--r--llvm/lib/Analysis/AliasSetTracker.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp
index 4c4f200bf82..de223043010 100644
--- a/llvm/lib/Analysis/AliasSetTracker.cpp
+++ b/llvm/lib/Analysis/AliasSetTracker.cpp
@@ -317,10 +317,13 @@ AliasSet *AliasSetTracker::findAliasSetForUnknownInst(Instruction *Inst) {
iterator Cur = I++;
if (Cur->Forward || !Cur->aliasesUnknownInst(Inst, AA))
continue;
- if (!FoundSet) // If this is the first alias set ptr can go into.
- FoundSet = &*Cur; // Remember it.
- else // Otherwise, we must merge the sets.
- FoundSet->mergeSetIn(*Cur, *this); // Merge in contents.
+ if (!FoundSet) {
+ // If this is the first alias set ptr can go into, remember it.
+ FoundSet = &*Cur;
+ } else {
+ // Otherwise, we must merge the sets.
+ FoundSet->mergeSetIn(*Cur, *this);
+ }
}
return FoundSet;
}
@@ -330,7 +333,7 @@ AliasSet &AliasSetTracker::getAliasSetFor(const MemoryLocation &MemLoc) {
Value * const Pointer = const_cast<Value*>(MemLoc.Ptr);
const LocationSize Size = MemLoc.Size;
const AAMDNodes &AAInfo = MemLoc.AATags;
-
+
AliasSet::PointerRec &Entry = getEntryFor(Pointer);
if (AliasAnyAS) {
OpenPOWER on IntegriCloud