mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Reduce use list thrashing by using DenseMap's find_as for maps with ValueHandle keys.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159497 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -501,7 +501,7 @@ void AliasSetTracker::deleteValue(Value *PtrVal) {
|
||||
}
|
||||
|
||||
// First, look up the PointerRec for this pointer.
|
||||
PointerMapType::iterator I = PointerMap.find(PtrVal);
|
||||
PointerMapType::iterator I = PointerMap.find_as(PtrVal);
|
||||
if (I == PointerMap.end()) return; // Noop
|
||||
|
||||
// If we found one, remove the pointer from the alias set it is in.
|
||||
@ -527,7 +527,7 @@ void AliasSetTracker::copyValue(Value *From, Value *To) {
|
||||
AA.copyValue(From, To);
|
||||
|
||||
// First, look up the PointerRec for this pointer.
|
||||
PointerMapType::iterator I = PointerMap.find(From);
|
||||
PointerMapType::iterator I = PointerMap.find_as(From);
|
||||
if (I == PointerMap.end())
|
||||
return; // Noop
|
||||
assert(I->second->hasAliasSet() && "Dead entry?");
|
||||
@ -536,7 +536,7 @@ void AliasSetTracker::copyValue(Value *From, Value *To) {
|
||||
if (Entry.hasAliasSet()) return; // Already in the tracker!
|
||||
|
||||
// Add it to the alias set it aliases...
|
||||
I = PointerMap.find(From);
|
||||
I = PointerMap.find_as(From);
|
||||
AliasSet *AS = I->second->getAliasSet(*this);
|
||||
AS->addPointer(*this, Entry, I->second->getSize(),
|
||||
I->second->getTBAAInfo(),
|
||||
|
Reference in New Issue
Block a user