mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-05 18:17:00 +00:00
Increase the static sizes of some SmallSets. finalizeBundle() is very frequently called for some backends, and growing into an std::set is overkill for these numbers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164044 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2b94302433
commit
8dcc99496d
@ -109,10 +109,10 @@ void llvm::finalizeBundle(MachineBasicBlock &MBB,
|
||||
MachineInstrBuilder MIB = BuildMI(MBB, FirstMI, FirstMI->getDebugLoc(),
|
||||
TII->get(TargetOpcode::BUNDLE));
|
||||
|
||||
SmallVector<unsigned, 8> LocalDefs;
|
||||
SmallSet<unsigned, 8> LocalDefSet;
|
||||
SmallVector<unsigned, 32> LocalDefs;
|
||||
SmallSet<unsigned, 32> LocalDefSet;
|
||||
SmallSet<unsigned, 8> DeadDefSet;
|
||||
SmallSet<unsigned, 8> KilledDefSet;
|
||||
SmallSet<unsigned, 16> KilledDefSet;
|
||||
SmallVector<unsigned, 8> ExternUses;
|
||||
SmallSet<unsigned, 8> ExternUseSet;
|
||||
SmallSet<unsigned, 8> KilledUseSet;
|
||||
@ -181,7 +181,7 @@ void llvm::finalizeBundle(MachineBasicBlock &MBB,
|
||||
Defs.clear();
|
||||
}
|
||||
|
||||
SmallSet<unsigned, 8> Added;
|
||||
SmallSet<unsigned, 32> Added;
|
||||
for (unsigned i = 0, e = LocalDefs.size(); i != e; ++i) {
|
||||
unsigned Reg = LocalDefs[i];
|
||||
if (Added.insert(Reg)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user