[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 7 16:45:26 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelDAGToDAG.cpp updated: 1.73 -> 1.74
---
Log message:
Remove some cases handled by the generated portion of the isel
---
Diffs of the changes: (+3 -13)
PPC32ISelDAGToDAG.cpp | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
Index: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.73 llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.74
--- llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.73 Tue Sep 6 17:03:27 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp Wed Sep 7 18:45:15 2005
@@ -62,6 +62,7 @@
// 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 @@
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 @@
}
}
- assert(0 && "Unreachable!");
- abort();
- return SDOperand(N, Op.ResNo);
+ return SelectCode(Op);
}
More information about the llvm-commits
mailing list