[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Aug 26 14:39:26 PDT 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAG.cpp updated: 1.171 -> 1.172
---
Log message:

Checking types here is not safe, because multiple types can map to the same
register class.


---
Diffs of the changes:  (+0 -3)

 SelectionDAG.cpp |    3 ---
 1 files changed, 3 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.171 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.172
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.171	Fri Aug 26 13:36:28 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp	Fri Aug 26 16:39:15 2005
@@ -2015,8 +2015,6 @@
   assert(From->getNumValues() == 1 && To->getNumValues() == 1 &&
          "Cannot replace with this method!");
   assert(From != To && "Cannot replace uses of with self");
-  assert(From->getValueType(0) == To->getValueType(0) &&
-         "Replacing with different values");
   
   while (!From->use_empty()) {
     // Process users until they are all gone.
@@ -2102,7 +2100,6 @@
     for (unsigned i = 0, e = U->getNumOperands(); i != e; ++i)
       if (U->getOperand(i).Val == From) {
         const SDOperand &ToOp = To[U->getOperand(i).ResNo];
-        assert(U->getOperand(i).getValueType() == ToOp.getValueType());
         From->removeUser(U);
         U->Operands[i] = ToOp;
         ToOp.Val->addUser(U);






More information about the llvm-commits mailing list