diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-26 21:39:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-26 21:39:15 +0000 |
commit | 579cfabdade805651c42971a22ae042dba3a33c4 (patch) | |
tree | 33ac37bbf899283e86fe989802b71b3626cec2a4 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 8a2d3ca7dff8f37ee0f1fc0042f47c194045183d (diff) |
Checking types here is not safe, because multiple types can map to the same
register class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index de23113f9b..4316315104 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2015,8 +2015,6 @@ void SelectionDAG::ReplaceAllUsesWith(SDOperand FromN, SDOperand ToN) { 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 @@ void SelectionDAG::ReplaceAllUsesWith(SDNode *From, 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); |