diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-03-10 00:36:04 +0000 | 
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-03-10 00:36:04 +0000 | 
| commit | 6ea6a144583dde3f04374ea6e55e904e790088a5 (patch) | |
| tree | 1f65df87bd4a010fcb5582500073a858f94b6bae /llvm/lib | |
| parent | dfa5b22238b098202062229f3b78a0c9cc92bf51 (diff) | |
| download | bcm5719-llvm-6ea6a144583dde3f04374ea6e55e904e790088a5.tar.gz bcm5719-llvm-6ea6a144583dde3f04374ea6e55e904e790088a5.zip | |
Use SmallPtrSet instead of DenseSet.
llvm-svn: 152457
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 394a96042e8..f26886fd20f 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -900,7 +900,7 @@ MachineVerifier::visitMachineBasicBlockAfter(const MachineBasicBlock *MBB) {  void MachineVerifier::calcRegsPassed() {    // First push live-out regs to successors' vregsPassed. Remember the MBBs that    // have any vregsPassed. -  DenseSet<const MachineBasicBlock*> todo; +  SmallPtrSet<const MachineBasicBlock*, 8> todo;    for (MachineFunction::const_iterator MFI = MF->begin(), MFE = MF->end();         MFI != MFE; ++MFI) {      const MachineBasicBlock &MBB(*MFI); @@ -937,7 +937,7 @@ void MachineVerifier::calcRegsPassed() {  // similar to calcRegsPassed, only backwards.  void MachineVerifier::calcRegsRequired() {    // First push live-in regs to predecessors' vregsRequired. -  DenseSet<const MachineBasicBlock*> todo; +  SmallPtrSet<const MachineBasicBlock*, 8> todo;    for (MachineFunction::const_iterator MFI = MF->begin(), MFE = MF->end();         MFI != MFE; ++MFI) {      const MachineBasicBlock &MBB(*MFI); @@ -970,9 +970,10 @@ void MachineVerifier::calcRegsRequired() {  // Check PHI instructions at the beginning of MBB. It is assumed that  // calcRegsPassed has been run so BBInfo::isLiveOut is valid.  void MachineVerifier::checkPHIOps(const MachineBasicBlock *MBB) { +  SmallPtrSet<const MachineBasicBlock*, 8> seen;    for (MachineBasicBlock::const_iterator BBI = MBB->begin(), BBE = MBB->end();         BBI != BBE && BBI->isPHI(); ++BBI) { -    DenseSet<const MachineBasicBlock*> seen; +    seen.clear();      for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) {        unsigned Reg = BBI->getOperand(i).getReg(); | 

