[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 28 10:07:20 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelDAGToDAG.cpp updated: 1.78 -> 1.79
---
Log message:
These nodes are all autogenerated
---
Diffs of the changes: (+0 -44)
PPC32ISelDAGToDAG.cpp | 44 --------------------------------------------
1 files changed, 44 deletions(-)
Index: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.78 llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.79
--- llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.78 Tue Sep 27 12:45:33 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp Wed Sep 28 12:07:09 2005
@@ -678,25 +678,6 @@
}
return SDOperand(N, 0);
}
- case ISD::Constant: {
- assert(N->getValueType(0) == MVT::i32);
- unsigned v = (unsigned)cast<ConstantSDNode>(N)->getValue();
-
- // NOTE: This doesn't use SelectNodeTo, because doing that will prevent
- // folding shared immediates into other the second instruction that
- // uses it.
- if (isInt16(v))
- return CurDAG->getTargetNode(PPC::LI, MVT::i32, getI32Imm(v));
-
- unsigned Hi = Hi16(v);
- unsigned Lo = Lo16(v);
-
- if (!Lo)
- return CurDAG->getTargetNode(PPC::LIS, MVT::i32, getI32Imm(Hi));
-
- SDOperand Top = CurDAG->getTargetNode(PPC::LIS, MVT::i32, getI32Imm(Hi));
- return CurDAG->getTargetNode(PPC::ORI, MVT::i32, Top, getI32Imm(Lo));
- }
case ISD::UNDEF:
if (N->getValueType(0) == MVT::i32)
CurDAG->SelectNodeTo(N, PPC::IMPLICIT_DEF_GPR, MVT::i32);
@@ -768,21 +749,6 @@
CurDAG->ReplaceAllUsesWith(N, Result.Val);
return SDOperand(Result.Val, Op.ResNo);
}
- case ISD::SIGN_EXTEND_INREG:
- switch(cast<VTSDNode>(N->getOperand(1))->getVT()) {
- default: assert(0 && "Illegal type in SIGN_EXTEND_INREG"); break;
- case MVT::i16:
- CurDAG->SelectNodeTo(N, PPC::EXTSH, MVT::i32, Select(N->getOperand(0)));
- break;
- case MVT::i8:
- CurDAG->SelectNodeTo(N, PPC::EXTSB, MVT::i32, Select(N->getOperand(0)));
- break;
- }
- return SDOperand(N, 0);
- case ISD::CTLZ:
- assert(N->getValueType(0) == MVT::i32);
- CurDAG->SelectNodeTo(N, PPC::CNTLZW, MVT::i32, Select(N->getOperand(0)));
- return SDOperand(N, 0);
case PPCISD::FSEL:
CurDAG->SelectNodeTo(N, PPC::FSEL, N->getValueType(0),
Select(N->getOperand(0)),
@@ -960,16 +926,6 @@
Select(N->getOperand(1)));
return SDOperand(N, 0);
}
- case ISD::MULHS:
- assert(N->getValueType(0) == MVT::i32);
- CurDAG->SelectNodeTo(N, PPC::MULHW, MVT::i32, Select(N->getOperand(0)),
- Select(N->getOperand(1)));
- return SDOperand(N, 0);
- case ISD::MULHU:
- assert(N->getValueType(0) == MVT::i32);
- CurDAG->SelectNodeTo(N, PPC::MULHWU, MVT::i32, Select(N->getOperand(0)),
- Select(N->getOperand(1)));
- return SDOperand(N, 0);
case ISD::AND: {
unsigned Imm;
// If this is an and of a value rotated between 0 and 31 bits and then and'd
More information about the llvm-commits
mailing list