From 19c0907ba1c11c81dc231cf7b4143fdaf03466e4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 7 Sep 2005 23:45:15 +0000 Subject: [PATCH] Remove some cases handled by the generated portion of the isel git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23262 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index dd3fe514df2..0ae7ad6b4fb 100644 --- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -62,6 +62,7 @@ namespace { // Select - Convert the specified operand from a target-independent to a // target-specific node if it hasn't already been changed. SDOperand Select(SDOperand Op); + SDOperand SelectCode(SDOperand Op); SDNode *SelectIntImmediateExpr(SDOperand LHS, SDOperand RHS, unsigned OCHi, unsigned OCLo, @@ -636,16 +637,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) { return Op; // Already selected. switch (N->getOpcode()) { - default: - std::cerr << "Cannot yet select: "; - N->dump(); - std::cerr << "\n"; - abort(); - case ISD::EntryToken: // These leaves remain the same. - return Op; - case ISD::AssertSext: - case ISD::AssertZext: - return Select(N->getOperand(0)); + default: break; case ISD::TokenFactor: { SDOperand New; if (N->getNumOperands() == 2) { @@ -1598,9 +1590,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) { } } - assert(0 && "Unreachable!"); - abort(); - return SDOperand(N, Op.ResNo); + return SelectCode(Op); }