CALLSEQ_START/END nodes don't get memoized, do not add them in when

replaceAllUses'ing.

llvm-svn: 24539
This commit is contained in:
Chris Lattner 2005-11-30 18:20:52 +00:00
parent 7ffe3affda
commit c174048430
1 changed files with 4 additions and 0 deletions

View File

@ -387,6 +387,10 @@ void SelectionDAG::RemoveNodeFromCSEMaps(SDNode *N) {
///
SDNode *SelectionDAG::AddNonLeafNodeToCSEMaps(SDNode *N) {
assert(N->getNumOperands() && "This is a leaf node!");
if (N->getOpcode() == ISD::CALLSEQ_START ||
N->getOpcode() == ISD::CALLSEQ_END)
return 0;
if (N->getOpcode() == ISD::LOAD) {
SDNode *&L = Loads[std::make_pair(N->getOperand(1),
std::make_pair(N->getOperand(0),