mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
rangify; NFCI
llvm-svn: 257646
This commit is contained in:
parent
982b8ff4fa
commit
41b0bd1549
@ -131,8 +131,8 @@ ModRefInfo ScopedNoAliasAAResult::getModRefInfo(ImmutableCallSite CS1,
|
||||
void ScopedNoAliasAAResult::collectMDInDomain(
|
||||
const MDNode *List, const MDNode *Domain,
|
||||
SmallPtrSetImpl<const MDNode *> &Nodes) const {
|
||||
for (unsigned i = 0, ie = List->getNumOperands(); i != ie; ++i)
|
||||
if (const MDNode *MD = dyn_cast<MDNode>(List->getOperand(i)))
|
||||
for (const MDOperand &MDOp : List->operands())
|
||||
if (const MDNode *MD = dyn_cast<MDNode>(MDOp))
|
||||
if (AliasScopeNode(MD).getDomain() == Domain)
|
||||
Nodes.insert(MD);
|
||||
}
|
||||
@ -144,8 +144,8 @@ bool ScopedNoAliasAAResult::mayAliasInScopes(const MDNode *Scopes,
|
||||
|
||||
// Collect the set of scope domains relevant to the noalias scopes.
|
||||
SmallPtrSet<const MDNode *, 16> Domains;
|
||||
for (unsigned i = 0, ie = NoAlias->getNumOperands(); i != ie; ++i)
|
||||
if (const MDNode *NAMD = dyn_cast<MDNode>(NoAlias->getOperand(i)))
|
||||
for (const MDOperand &MDOp : NoAlias->operands())
|
||||
if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp))
|
||||
if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain())
|
||||
Domains.insert(Domain);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user