mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Reserve a goodly amount of room for the vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108448 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20d256e479
commit
e4a4147c87
@ -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…
Reference in New Issue
Block a user