aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-14 07:29:57 +0000
committerChris Lattner <sabre@nondot.org>2005-05-14 07:29:57 +0000
commitadf6c2a0cb638e8b211200b57b927d16f6e1cfc4 (patch)
treeb381bba04185735b2a413cbae1ae40a55b08c75b /lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parente89083a9300dc463e3b79eabe2b9913d85338d28 (diff)
Eliminate special purpose hacks for dynamic_stack_alloc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22015 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 165b3c92f1..3643f77f93 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1350,19 +1350,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
}
SDNode *N = new SDNode(Opcode, N1, N2, N3);
- switch (Opcode) {
- case ISD::SRA_PARTS:
- case ISD::SRL_PARTS:
- case ISD::SHL_PARTS:
- assert(0 && "Should not get here!");
- default:
- N->setValueTypes(VT);
- break;
- case ISD::DYNAMIC_STACKALLOC: // DYNAMIC_STACKALLOC produces pointer and chain
- N->setValueTypes(VT, MVT::Other);
- break;
- }
-
+ N->setValueTypes(VT);
// FIXME: memoize NODES
AllNodes.push_back(N);
return SDOperand(N, 0);