mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-24 13:06:56 +00:00
Get rid of a use of std::map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54770 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a60832b018
commit
97382166dd
@ -64,7 +64,7 @@ namespace {
|
|||||||
/// compiled, and keeps track of which register classes have registers that
|
/// compiled, and keeps track of which register classes have registers that
|
||||||
/// belong to multiple classes or have aliases that are in other classes.
|
/// belong to multiple classes or have aliases that are in other classes.
|
||||||
EquivalenceClasses<const TargetRegisterClass*> RelatedRegClasses;
|
EquivalenceClasses<const TargetRegisterClass*> RelatedRegClasses;
|
||||||
std::map<unsigned, const TargetRegisterClass*> OneClassForEachPhysReg;
|
DenseMap<unsigned, const TargetRegisterClass*> OneClassForEachPhysReg;
|
||||||
|
|
||||||
MachineFunction* mf_;
|
MachineFunction* mf_;
|
||||||
MachineRegisterInfo* mri_;
|
MachineRegisterInfo* mri_;
|
||||||
@ -221,7 +221,7 @@ void RALinScan::ComputeRelatedRegClasses() {
|
|||||||
// belongs to, add info about aliases. We don't need to do this for targets
|
// belongs to, add info about aliases. We don't need to do this for targets
|
||||||
// without register aliases.
|
// without register aliases.
|
||||||
if (HasAliases)
|
if (HasAliases)
|
||||||
for (std::map<unsigned, const TargetRegisterClass*>::iterator
|
for (DenseMap<unsigned, const TargetRegisterClass*>::iterator
|
||||||
I = OneClassForEachPhysReg.begin(), E = OneClassForEachPhysReg.end();
|
I = OneClassForEachPhysReg.begin(), E = OneClassForEachPhysReg.end();
|
||||||
I != E; ++I)
|
I != E; ++I)
|
||||||
for (const unsigned *AS = TRI.getAliasSet(I->first); *AS; ++AS)
|
for (const unsigned *AS = TRI.getAliasSet(I->first); *AS; ++AS)
|
||||||
|
Loading…
Reference in New Issue
Block a user