mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
[GMR] Only look in the associated allocs map for an underlying value if
it wasn't one of the indirect globals (which clearly cannot be an allocation function call). Also only do a single lookup into this map instead of two. NFC. llvm-svn: 242892
This commit is contained in:
parent
c9d371fb74
commit
41327e670f
@ -599,10 +599,10 @@ AliasResult GlobalsModRef::alias(const MemoryLocation &LocA,
|
||||
|
||||
// These pointers may also be from an allocation for the indirect global. If
|
||||
// so, also handle them.
|
||||
if (AllocsForIndirectGlobals.count(UV1))
|
||||
GV1 = AllocsForIndirectGlobals[UV1];
|
||||
if (AllocsForIndirectGlobals.count(UV2))
|
||||
GV2 = AllocsForIndirectGlobals[UV2];
|
||||
if (!GV1)
|
||||
GV1 = AllocsForIndirectGlobals.lookup(UV1);
|
||||
if (!GV2)
|
||||
GV2 = AllocsForIndirectGlobals.lookup(UV2);
|
||||
|
||||
// Now that we know whether the two pointers are related to indirect globals,
|
||||
// use this to disambiguate the pointers. If the pointers are based on
|
||||
|
Loading…
Reference in New Issue
Block a user