Remove some cases handled by the generated portion of the isel

llvm-svn: 23262
This commit is contained in:
Chris Lattner 2005-09-07 23:45:15 +00:00
parent d2a5b366f5
commit 498915dafa
1 changed files with 3 additions and 13 deletions

View File

@ -62,6 +62,7 @@ namespace {
// Select - Convert the specified operand from a target-independent to a // Select - Convert the specified operand from a target-independent to a
// target-specific node if it hasn't already been changed. // target-specific node if it hasn't already been changed.
SDOperand Select(SDOperand Op); SDOperand Select(SDOperand Op);
SDOperand SelectCode(SDOperand Op);
SDNode *SelectIntImmediateExpr(SDOperand LHS, SDOperand RHS, SDNode *SelectIntImmediateExpr(SDOperand LHS, SDOperand RHS,
unsigned OCHi, unsigned OCLo, unsigned OCHi, unsigned OCLo,
@ -636,16 +637,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
return Op; // Already selected. return Op; // Already selected.
switch (N->getOpcode()) { switch (N->getOpcode()) {
default: default: break;
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));
case ISD::TokenFactor: { case ISD::TokenFactor: {
SDOperand New; SDOperand New;
if (N->getNumOperands() == 2) { if (N->getNumOperands() == 2) {
@ -1598,9 +1590,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
} }
} }
assert(0 && "Unreachable!"); return SelectCode(Op);
abort();
return SDOperand(N, Op.ResNo);
} }