aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-04-03 00:25:26 +0000
committerDan Gohman <gohman@apple.com>2009-04-03 00:25:26 +0000
commit8f9643f0f768d5dcff0ffea1de6191dba1b5b083 (patch)
treef246f1e82d6bb08c3b214a627b51e517c44c2d22 /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent25f0ee5191f8460099cfa9897f7a1750b79bfa98 (diff)
Delete ISD::INSERT_SUBREG and ISD::EXTRACT_SUBREG, which are unused.
Note that these are distinct from TargetInstrInfo::INSERT_SUBREG and TargetInstrInfo::EXTRACT_SUBREG, which are used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 8d1ea8d3a4..a2c5396bb9 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1589,23 +1589,6 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
AddLegalizedOperand(SDValue(Node, i), Tmp1);
}
return Tmp2;
- case ISD::EXTRACT_SUBREG: {
- Tmp1 = LegalizeOp(Node->getOperand(0));
- ConstantSDNode *idx = dyn_cast<ConstantSDNode>(Node->getOperand(1));
- assert(idx && "Operand must be a constant");
- Tmp2 = DAG.getTargetConstant(idx->getAPIntValue(), idx->getValueType(0));
- Result = DAG.UpdateNodeOperands(Result, Tmp1, Tmp2);
- }
- break;
- case ISD::INSERT_SUBREG: {
- Tmp1 = LegalizeOp(Node->getOperand(0));
- Tmp2 = LegalizeOp(Node->getOperand(1));
- ConstantSDNode *idx = dyn_cast<ConstantSDNode>(Node->getOperand(2));
- assert(idx && "Operand must be a constant");
- Tmp3 = DAG.getTargetConstant(idx->getAPIntValue(), idx->getValueType(0));
- Result = DAG.UpdateNodeOperands(Result, Tmp1, Tmp2, Tmp3);
- }
- break;
case ISD::BUILD_VECTOR:
switch (TLI.getOperationAction(ISD::BUILD_VECTOR, Node->getValueType(0))) {
default: assert(0 && "This action is not supported yet!");