remove special case hacks for readport/readio from the binary operator
codepath
llvm-svn: 22019
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index bfaca1d..c3889dd 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1215,12 +1215,7 @@
N = new SDNode(Opcode, N1, N2);
}
-
- if (Opcode != ISD::READPORT && Opcode != ISD::READIO)
- N->setValueTypes(VT);
- else
- N->setValueTypes(VT, MVT::Other);
-
+ N->setValueTypes(VT);
AllNodes.push_back(N);
return SDOperand(N, 0);
}