Fix a really scary bug that Nate found where we weren't deleting the right
elements auto of the autoCSE maps.
llvm-svn: 21128
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 858b8dd..ea87a64 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -241,7 +241,7 @@
case ISD::SEXTLOAD:
case ISD::ZEXTLOAD: {
EVTStruct NN;
- NN.Opcode = ISD::TRUNCSTORE;
+ NN.Opcode = N->getOpcode();
NN.VT = N->getValueType(0);
NN.EVT = cast<MVTSDNode>(N)->getExtraValueType();
for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i)