diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-18 19:26:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-18 19:26:36 +0000 |
commit | 4a9b4f1943c6c56c749c8709ed28680408afc577 (patch) | |
tree | 75a9db21c9dec51258dcc47c9ffa2d378f8f08ed /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | c7ba0eb5eb170daeb13ed97b23f1283f13bb33eb (diff) |
Keep track of the retval type as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19670 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 43f13d71fc..3da2f5fe7a 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -218,7 +218,9 @@ void SelectionDAG::DeleteNodeIfDead(SDNode *N, void *NodeSet) { case ISD::SETCC: SetCCs.erase(std::make_pair(std::make_pair(N->getOperand(0), N->getOperand(1)), - cast<SetCCSDNode>(N)->getCondition())); + std::make_pair( + cast<SetCCSDNode>(N)->getCondition(), + N->getValueType(0)))); break; case ISD::TRUNCSTORE: case ISD::SIGN_EXTEND_INREG: @@ -463,7 +465,8 @@ SDOperand SelectionDAG::getSetCC(ISD::CondCode Cond, MVT::ValueType VT, } } - SetCCSDNode *&N = SetCCs[std::make_pair(std::make_pair(N1, N2), Cond)]; + SetCCSDNode *&N = SetCCs[std::make_pair(std::make_pair(N1, N2), + std::make_pair(Cond, VT))]; if (N) return SDOperand(N, 0); N = new SetCCSDNode(Cond, N1, N2); N->setValueTypes(VT); |