llvm.org GIT mirror llvm / 0410407
Replace std::set with SmallPtrSet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37746 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 12 years ago
1 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3131 #include "llvm/Target/TargetInstrInfo.h"
3232 #include "llvm/Target/TargetMachine.h"
3333 #include "llvm/ADT/DepthFirstIterator.h"
34 #include "llvm/ADT/SmallPtrSet.h"
3435 #include "llvm/ADT/STLExtras.h"
3536 #include "llvm/Config/alloca.h"
3637 #include
423424 // nodes, which are treated as a special case).
424425 //
425426 MachineBasicBlock *Entry = MF->begin();
426 std::set Visited;
427 for (df_ext_iterator DFI = df_ext_begin(Entry, Visited),
428 E = df_ext_end(Entry, Visited); DFI != E; ++DFI) {
427 SmallPtrSet Visited;
428 for (df_ext_iterator >
429 DFI = df_ext_begin(Entry, Visited), E = df_ext_end(Entry, Visited);
430 DFI != E; ++DFI) {
429431 MachineBasicBlock *MBB = *DFI;
430432
431433 // Mark live-in registers as live-in.