mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-05 11:46:42 +00:00
Reserve a goodly amount of room for the vectors.
llvm-svn: 108448
This commit is contained in:
parent
fbb8d81b7e
commit
6dfc02e0fc
@ -42,6 +42,9 @@ DebugMod("agg-antidep-debugmod",
|
||||
AggressiveAntiDepState::AggressiveAntiDepState(const unsigned TargetRegs,
|
||||
MachineBasicBlock *BB) :
|
||||
NumTargetRegs(TargetRegs), GroupNodes(TargetRegs, 0) {
|
||||
GroupNodeIndices.reserve(TargetRegs);
|
||||
KillIndices.reserve(TargetRegs);
|
||||
DefIndices.reserve(TargetRegs);
|
||||
|
||||
const unsigned BBSize = BB->size();
|
||||
for (unsigned i = 0; i < NumTargetRegs; ++i) {
|
||||
@ -54,8 +57,7 @@ AggressiveAntiDepState::AggressiveAntiDepState(const unsigned TargetRegs,
|
||||
}
|
||||
}
|
||||
|
||||
unsigned AggressiveAntiDepState::GetGroup(unsigned Reg)
|
||||
{
|
||||
unsigned AggressiveAntiDepState::GetGroup(unsigned Reg) {
|
||||
unsigned Node = GroupNodeIndices[Reg];
|
||||
while (GroupNodes[Node] != Node)
|
||||
Node = GroupNodes[Node];
|
||||
|
Loading…
x
Reference in New Issue
Block a user