mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
[AliasSetTracker] Cleanup comments. [NFCI]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352406 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user