Start on my todo list
authorAndrew Lenharth <andrewl@lenharth.org>
Mon, 12 Jun 2006 16:07:18 +0000 (16:07 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Mon, 12 Jun 2006 16:07:18 +0000 (16:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28752 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp

index d17449bf504a50965025d0e466e2e3fb79ecf537..3da8baa8670226fe45eac12df15228954311f656 100644 (file)
@@ -25,7 +25,6 @@
 #include "llvm/Type.h"
 #include "llvm/CodeGen/SelectionDAGNodes.h"
 #include <map>
-#include <list>
 
 namespace llvm {
   class Value;
@@ -654,9 +653,9 @@ public:
   // Div utility functions
   //
   SDOperand BuildSDIV(SDNode *N, SelectionDAG &DAG, 
-                     std::list<SDNode*>* Created) const;
+                     std::vector<SDNode*>* Created) const;
   SDOperand BuildUDIV(SDNode *N, SelectionDAG &DAG, 
-                     std::list<SDNode*>* Created) const;
+                     std::vector<SDNode*>* Created) const;
 
 
 protected:
index 938e17a084f6222da9021249a51a51c6c906f0a4..3961606b203f64963de6eb87aa871dc712ac141f 100644 (file)
@@ -3454,10 +3454,10 @@ SDOperand DAGCombiner::SimplifySetCC(MVT::ValueType VT, SDOperand N0,
 /// multiplying by a magic number.  See:
 /// <http://the.wall.riscom.net/books/proc/ppc/cwg/code2.html>
 SDOperand DAGCombiner::BuildSDIV(SDNode *N) {
-  std::list<SDNode*> Built;
+  std::vector<SDNode*> Built;
   SDOperand S = TLI.BuildSDIV(N, DAG, &Built);
 
-  for (std::list<SDNode*>::iterator ii = Built.begin(), ee = Built.end();
+  for (std::vector<SDNode*>::iterator ii = Built.begin(), ee = Built.end();
        ii != ee; ++ii)
     AddToWorkList(*ii);
   return S;
@@ -3468,10 +3468,10 @@ SDOperand DAGCombiner::BuildSDIV(SDNode *N) {
 /// multiplying by a magic number.  See:
 /// <http://the.wall.riscom.net/books/proc/ppc/cwg/code2.html>
 SDOperand DAGCombiner::BuildUDIV(SDNode *N) {
-  std::list<SDNode*> Built;
+  std::vector<SDNode*> Built;
   SDOperand S = TLI.BuildUDIV(N, DAG, &Built);
 
-  for (std::list<SDNode*>::iterator ii = Built.begin(), ee = Built.end();
+  for (std::vector<SDNode*>::iterator ii = Built.begin(), ee = Built.end();
        ii != ee; ++ii)
     AddToWorkList(*ii);
   return S;
index 15a60aafa8aaf54012617650f827e3b5e1ffb4b9..f4e807009b658835a247eff35fe922b802400de0 100644 (file)
@@ -1511,7 +1511,7 @@ static mu magicu64(uint64_t d)
 /// multiplying by a magic number.  See:
 /// <http://the.wall.riscom.net/books/proc/ppc/cwg/code2.html>
 SDOperand TargetLowering::BuildSDIV(SDNode *N, SelectionDAG &DAG, 
-                                   std::list<SDNode*>* Created) const {
+                                   std::vector<SDNode*>* Created) const {
   MVT::ValueType VT = N->getValueType(0);
   
   // Check to see if we can do this.
@@ -1559,7 +1559,7 @@ SDOperand TargetLowering::BuildSDIV(SDNode *N, SelectionDAG &DAG,
 /// multiplying by a magic number.  See:
 /// <http://the.wall.riscom.net/books/proc/ppc/cwg/code2.html>
 SDOperand TargetLowering::BuildUDIV(SDNode *N, SelectionDAG &DAG,
-                                   std::list<SDNode*>* Created) const {
+                                   std::vector<SDNode*>* Created) const {
   MVT::ValueType VT = N->getValueType(0);
   
   // Check to see if we can do this.