[llvm-commits] CVS: llvm/lib/Target/Sparc/InstrSelection/InstrSelection.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Wed Feb 11 20:28:15 PST 2004


Changes in directory llvm/lib/Target/Sparc/InstrSelection:

InstrSelection.cpp updated: 1.68 -> 1.69

---
Log message:

Change MachineBasicBlock's vector of MachineInstr pointers into an
ilist of MachineInstr objects. This allows constant time removal and
insertion of MachineInstr instances from anywhere in each
MachineBasicBlock. It also allows for constant time splicing of
MachineInstrs into or out of MachineBasicBlocks.


---
Diffs of the changes:  (+1 -4)

Index: llvm/lib/Target/Sparc/InstrSelection/InstrSelection.cpp
diff -u llvm/lib/Target/Sparc/InstrSelection/InstrSelection.cpp:1.68 llvm/lib/Target/Sparc/InstrSelection/InstrSelection.cpp:1.69
--- llvm/lib/Target/Sparc/InstrSelection/InstrSelection.cpp:1.68	Sun Dec 28 15:23:38 2003
+++ llvm/lib/Target/Sparc/InstrSelection/InstrSelection.cpp	Wed Feb 11 20:27:09 2004
@@ -283,10 +283,7 @@
       break;
     }
 
-  // find the position of first machine instruction generated by the
-  // terminator of this BB
-  MachineBasicBlock::iterator MCIt =
-    std::find(MBB->begin(), MBB->end(), FirstMIOfTerm);
+  MachineBasicBlock::iterator MCIt = FirstMIOfTerm;
 
   assert(MCIt != MBB->end() && "Start inst of terminator not found");
   





More information about the llvm-commits mailing list