mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-14 12:01:21 +00:00
memset_pattern16 uses a 16 BYTE pattern, not a 16 BIT pattern. Add comments to that effect.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139205 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69acc93b3d
commit
e421ad64ff
@ -847,11 +847,13 @@ BasicAliasAnalysis::getModRefInfo(ImmutableCallSite CS,
|
|||||||
const Value *Src = CS.getArgument(1);
|
const Value *Src = CS.getArgument(1);
|
||||||
// If it can't overlap the source dest, then it doesn't modref the loc.
|
// If it can't overlap the source dest, then it doesn't modref the loc.
|
||||||
if (isNoAlias(Location(Dest, Len), Loc)) {
|
if (isNoAlias(Location(Dest, Len), Loc)) {
|
||||||
if (isNoAlias(Location(Src, 2), Loc))
|
// Always reads 16 bytes of the source.
|
||||||
|
if (isNoAlias(Location(Src, 16), Loc))
|
||||||
return NoModRef;
|
return NoModRef;
|
||||||
// If it can't overlap the dest, then worst case it reads the loc.
|
// If it can't overlap the dest, then worst case it reads the loc.
|
||||||
Min = Ref;
|
Min = Ref;
|
||||||
} else if (isNoAlias(Location(Src, 2), Loc)) {
|
// Always reads 16 bytes of the source.
|
||||||
|
} else if (isNoAlias(Location(Src, 16), Loc)) {
|
||||||
// If it can't overlap the source, then worst case it mutates the loc.
|
// If it can't overlap the source, then worst case it mutates the loc.
|
||||||
Min = Mod;
|
Min = Mod;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user