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 | 4a5ebe94ba11976262772ef9a394f80c07610343 (patch) | |
tree | ad87267f6a82b263913e80e1b52cfc70f3392edd /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 9b577f108af6ff99dfd7ac5d13dc5e1b4d0abb37 (diff) | |
download | bcm5719-llvm-4a5ebe94ba11976262772ef9a394f80c07610343.tar.gz bcm5719-llvm-4a5ebe94ba11976262772ef9a394f80c07610343.zip |
Checking types here is not safe, because multiple types can map to the same
register class.
llvm-svn: 23103
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index de23113f9bb..43163151049 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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); |