mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user