Changes in directory llvm/lib/Target/ARM:
ARMConstantIslandPass.cpp updated: 1.25 -> 1.26 --- Log message: These vectors are frequently large. Use std::vector instead. --- Diffs of the changes: (+10 -10) ARMConstantIslandPass.cpp | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) Index: llvm/lib/Target/ARM/ARMConstantIslandPass.cpp diff -u llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.25 llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.26 --- llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.25 Fri Feb 9 14:54:44 2007 +++ llvm/lib/Target/ARM/ARMConstantIslandPass.cpp Fri Feb 9 17:59:14 2007 @@ -52,12 +52,12 @@ /// BBSizes - The size of each MachineBasicBlock in bytes of code, indexed /// by MBB Number. - SmallVector<unsigned, 8> BBSizes; + std::vector<unsigned> BBSizes; /// WaterList - A sorted list of basic blocks where islands could be placed /// (i.e. blocks that don't fall through to the following block, due /// to a return, unreachable, or unconditional branch). - SmallVector<MachineBasicBlock*, 8> WaterList; + std::vector<MachineBasicBlock*> WaterList; /// CPUser - One user of a constant pool, keeping the machine instruction /// pointer, the constant pool being referenced, and the max displacement @@ -72,7 +72,7 @@ /// CPUsers - Keep track of all of the machine instructions that use various /// constant pools and their max displacement. - SmallVector<CPUser, 16> CPUsers; + std::vector<CPUser> CPUsers; /// CPEntry - One per constant pool entry, keeping the machine instruction /// pointer, the constpool index, and the number of CPUser's which @@ -104,7 +104,7 @@ /// Branches - Keep track of all the immediate branch instructions. /// - SmallVector<ImmBranch, 32> ImmBranches; + std::vector<ImmBranch> ImmBranches; /// PushPopMIs - Keep track of all the Thumb push / pop instructions. /// @@ -125,10 +125,10 @@ private: void DoInitialPlacement(MachineFunction &Fn, - SmallVector<MachineInstr*, 16> &CPEMIs); + std::vector<MachineInstr*> &CPEMIs); CPEntry *findConstPoolEntry(unsigned CPI, const MachineInstr *CPEMI); void InitialFunctionScan(MachineFunction &Fn, - const SmallVector<MachineInstr*, 16> &CPEMIs); + const std::vector<MachineInstr*> &CPEMIs); MachineBasicBlock *SplitBlockBeforeInstr(MachineInstr *MI); void UpdateForInsertedWaterBlock(MachineBasicBlock *NewBB); bool HandleConstantPoolUser(MachineFunction &Fn, CPUser &U); @@ -164,7 +164,7 @@ // Perform the initial placement of the constant pool entries. To start with, // we put them all at the end of the function. - SmallVector<MachineInstr*, 16> CPEMIs; + std::vector<MachineInstr*> CPEMIs; if (!MCP.isEmpty()) DoInitialPlacement(Fn, CPEMIs); @@ -209,7 +209,7 @@ /// DoInitialPlacement - Perform the initial placement of the constant pool /// entries. To start with, we put them all at the end of the function. void ARMConstantIslands::DoInitialPlacement(MachineFunction &Fn, - SmallVector<MachineInstr*, 16> &CPEMIs){ + std::vector<MachineInstr*> &CPEMIs){ // Create the basic block to hold the CPE's. MachineBasicBlock *BB = new MachineBasicBlock(); Fn.getBasicBlockList().push_back(BB); @@ -276,7 +276,7 @@ /// information about the sizes of each block, the location of all the water, /// and finding all of the constant pool users. void ARMConstantIslands::InitialFunctionScan(MachineFunction &Fn, - const SmallVector<MachineInstr*, 16> &CPEMIs) { + const std::vector<MachineInstr*> &CPEMIs) { for (MachineFunction::iterator MBBI = Fn.begin(), E = Fn.end(); MBBI != E; ++MBBI) { MachineBasicBlock &MBB = *MBBI; @@ -460,7 +460,7 @@ // Next, update WaterList. Specifically, we need to add NewMBB as having // available water after it. - SmallVector<MachineBasicBlock*, 8>::iterator IP = + std::vector<MachineBasicBlock*>::iterator IP = std::lower_bound(WaterList.begin(), WaterList.end(), NewBB, CompareMBBNumbers); WaterList.insert(IP, NewBB); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits