mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 01:31:05 +00:00
Remove dead code. (S|U)MUL_LO is now lowered to LMUL or MACC(S|U)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98269 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d0f393d46f
commit
c6bc9a69d4
@ -173,29 +173,6 @@ SDNode *XCoreDAGToDAGISel::Select(SDNode *N) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ISD::SMUL_LOHI: {
|
||||
// FIXME fold addition into the macc instruction
|
||||
SDValue Zero(CurDAG->getMachineNode(XCore::LDC_ru6, dl, MVT::i32,
|
||||
CurDAG->getTargetConstant(0, MVT::i32)), 0);
|
||||
SDValue Ops[] = { Zero, Zero, N->getOperand(0), N->getOperand(1) };
|
||||
SDNode *ResNode = CurDAG->getMachineNode(XCore::MACCS_l4r, dl,
|
||||
MVT::i32, MVT::i32, Ops, 4);
|
||||
ReplaceUses(SDValue(N, 0), SDValue(ResNode, 1));
|
||||
ReplaceUses(SDValue(N, 1), SDValue(ResNode, 0));
|
||||
return NULL;
|
||||
}
|
||||
case ISD::UMUL_LOHI: {
|
||||
// FIXME fold addition into the macc / lmul instruction
|
||||
SDValue Zero(CurDAG->getMachineNode(XCore::LDC_ru6, dl, MVT::i32,
|
||||
CurDAG->getTargetConstant(0, MVT::i32)), 0);
|
||||
SDValue Ops[] = { N->getOperand(0), N->getOperand(1),
|
||||
Zero, Zero };
|
||||
SDNode *ResNode = CurDAG->getMachineNode(XCore::LMUL_l6r, dl, MVT::i32,
|
||||
MVT::i32, Ops, 4);
|
||||
ReplaceUses(SDValue(N, 0), SDValue(ResNode, 1));
|
||||
ReplaceUses(SDValue(N, 1), SDValue(ResNode, 0));
|
||||
return NULL;
|
||||
}
|
||||
case XCoreISD::LADD: {
|
||||
SDValue Ops[] = { N->getOperand(0), N->getOperand(1),
|
||||
N->getOperand(2) };
|
||||
|
Loading…
x
Reference in New Issue
Block a user