aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-28 00:02:51 +0000
committerChris Lattner <sabre@nondot.org>2006-01-28 00:02:51 +0000
commit34fa038f0c802bfba2cddd2b091830ff90c06df4 (patch)
tree23b36e740d846a8d7663fdf0c0f5a6ddd4843b97 /lib
parent2d90bd5f421c3b10e284f498f59e0439b7de70bf (diff)
Remove some dead code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/IA64/IA64ISelDAGToDAG.cpp30
-rw-r--r--lib/Target/IA64/IA64ISelLowering.cpp5
2 files changed, 0 insertions, 35 deletions
diff --git a/lib/Target/IA64/IA64ISelDAGToDAG.cpp b/lib/Target/IA64/IA64ISelDAGToDAG.cpp
index 046e30b168..91fff5cea1 100644
--- a/lib/Target/IA64/IA64ISelDAGToDAG.cpp
+++ b/lib/Target/IA64/IA64ISelDAGToDAG.cpp
@@ -413,36 +413,6 @@ SDOperand IA64DAGToDAGISel::Select(SDOperand Op) {
return Result;
}
- case ISD::CALL:
- case ISD::TAILCALL: { {
- // FIXME: This is a workaround for a bug in tblgen.
- // Pattern #47: (call:Flag (tglobaladdr:i32):$dst, ICC:Flag)
- // Emits: (CALL:void (tglobaladdr:i32):$dst)
- // Pattern complexity = 2 cost = 1
- SDOperand N1 = N->getOperand(1);
- if (N1.getOpcode() != ISD::TargetGlobalAddress &&
- N1.getOpcode() != ISD::ExternalSymbol) goto P47Fail;
- SDOperand InFlag = SDOperand(0, 0);
- SDOperand Chain = N->getOperand(0);
- SDOperand Tmp0 = N1;
- Chain = Select(Chain);
- SDOperand Result;
- if (N->getNumOperands() == 3) {
- InFlag = Select(N->getOperand(2));
- Result = CurDAG->getTargetNode(IA64::BRCALL, MVT::Other, MVT::Flag, Tmp0,
- Chain, InFlag);
- } else {
- Result = CurDAG->getTargetNode(IA64::BRCALL, MVT::Other, MVT::Flag, Tmp0,
- Chain);
- }
- Chain = CodeGenMap[SDOperand(N, 0)] = Result.getValue(0);
- CodeGenMap[SDOperand(N, 1)] = Result.getValue(1);
- return Result.getValue(Op.ResNo);
- }
- P47Fail:;
-
- }
-
case ISD::FDIV:
case ISD::SDIV:
case ISD::UDIV:
diff --git a/lib/Target/IA64/IA64ISelLowering.cpp b/lib/Target/IA64/IA64ISelLowering.cpp
index 780cb08dd2..4e32972da4 100644
--- a/lib/Target/IA64/IA64ISelLowering.cpp
+++ b/lib/Target/IA64/IA64ISelLowering.cpp
@@ -461,11 +461,6 @@ IA64TargetLowering::LowerCallTo(SDOperand Chain,
else
assert(0 && "this should never happen!\n");
-/* out with the old...
- Chain = SDOperand(DAG.getCall(NodeTys, Chain, Callee, InFlag), 0);
- else
- Chain = SDOperand(DAG.getCall(NodeTys, Chain, Callee), 0);
-*/
// to make way for a hack:
Chain = DAG.getNode(IA64ISD::BRCALL, NodeTys, CallOperands);
InFlag = Chain.getValue(1);