diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2007-06-27 05:23:00 +0000 | 
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2007-06-27 05:23:00 +0000 | 
| commit | e66f822eccae57b97a03911e36f39acfdbaeff7f (patch) | |
| tree | 51774f53ea5c0cc99e23449b2b93b5750950810b /llvm | |
| parent | b6a39fcb2140d4b42dc492ed3cda237a39f455ac (diff) | |
| download | bcm5719-llvm-e66f822eccae57b97a03911e36f39acfdbaeff7f.tar.gz bcm5719-llvm-e66f822eccae57b97a03911e36f39acfdbaeff7f.zip  | |
Replace std::set with SmallPtrSet.
llvm-svn: 37746
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/LiveVariables.cpp | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp index 65129eb14cc..6f8e956b866 100644 --- a/llvm/lib/CodeGen/LiveVariables.cpp +++ b/llvm/lib/CodeGen/LiveVariables.cpp @@ -32,6 +32,7 @@  #include "llvm/Target/TargetInstrInfo.h"  #include "llvm/Target/TargetMachine.h"  #include "llvm/ADT/DepthFirstIterator.h" +#include "llvm/ADT/SmallPtrSet.h"  #include "llvm/ADT/STLExtras.h"  #include "llvm/Config/alloca.h"  #include <algorithm> @@ -424,9 +425,10 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &mf) {    // nodes, which are treated as a special case).    //    MachineBasicBlock *Entry = MF->begin(); -  std::set<MachineBasicBlock*> Visited; -  for (df_ext_iterator<MachineBasicBlock*> DFI = df_ext_begin(Entry, Visited), -         E = df_ext_end(Entry, Visited); DFI != E; ++DFI) { +  SmallPtrSet<MachineBasicBlock*,16> Visited; +  for (df_ext_iterator<MachineBasicBlock*, SmallPtrSet<MachineBasicBlock*,16> > +         DFI = df_ext_begin(Entry, Visited), E = df_ext_end(Entry, Visited); +       DFI != E; ++DFI) {      MachineBasicBlock *MBB = *DFI;      // Mark live-in registers as live-in.  | 

