[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jan 18 11:26:48 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.40 -> 1.41
---
Log message:
Keep track of the retval type as well.
---
Diffs of the changes: (+5 -2)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.40 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.41
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.40 Mon Jan 17 20:52:03 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Tue Jan 18 13:26:36 2005
@@ -218,7 +218,9 @@
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 @@
}
}
- 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);
More information about the llvm-commits
mailing list