mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
Remove dead patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122524 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
940c8e5494
commit
b0ad9cf935
@ -412,32 +412,6 @@ def arm_i32imm : PatLeaf<(imm), [{
|
|||||||
return ARM_AM::isSOImmTwoPartVal((unsigned)N->getZExtValue());
|
return ARM_AM::isSOImmTwoPartVal((unsigned)N->getZExtValue());
|
||||||
}]>;
|
}]>;
|
||||||
|
|
||||||
def so_imm2part_1 : SDNodeXForm<imm, [{
|
|
||||||
unsigned V = ARM_AM::getSOImmTwoPartFirst((unsigned)N->getZExtValue());
|
|
||||||
return CurDAG->getTargetConstant(V, MVT::i32);
|
|
||||||
}]>;
|
|
||||||
|
|
||||||
def so_imm2part_2 : SDNodeXForm<imm, [{
|
|
||||||
unsigned V = ARM_AM::getSOImmTwoPartSecond((unsigned)N->getZExtValue());
|
|
||||||
return CurDAG->getTargetConstant(V, MVT::i32);
|
|
||||||
}]>;
|
|
||||||
|
|
||||||
def so_neg_imm2part : Operand<i32>, PatLeaf<(imm), [{
|
|
||||||
return ARM_AM::isSOImmTwoPartVal(-(int)N->getZExtValue());
|
|
||||||
}]> {
|
|
||||||
let PrintMethod = "printSOImm2PartOperand";
|
|
||||||
}
|
|
||||||
|
|
||||||
def so_neg_imm2part_1 : SDNodeXForm<imm, [{
|
|
||||||
unsigned V = ARM_AM::getSOImmTwoPartFirst(-(int)N->getZExtValue());
|
|
||||||
return CurDAG->getTargetConstant(V, MVT::i32);
|
|
||||||
}]>;
|
|
||||||
|
|
||||||
def so_neg_imm2part_2 : SDNodeXForm<imm, [{
|
|
||||||
unsigned V = ARM_AM::getSOImmTwoPartSecond(-(int)N->getZExtValue());
|
|
||||||
return CurDAG->getTargetConstant(V, MVT::i32);
|
|
||||||
}]>;
|
|
||||||
|
|
||||||
/// imm0_31 predicate - True if the 32-bit immediate is in the range [0,31].
|
/// imm0_31 predicate - True if the 32-bit immediate is in the range [0,31].
|
||||||
def imm0_31 : Operand<i32>, PatLeaf<(imm), [{
|
def imm0_31 : Operand<i32>, PatLeaf<(imm), [{
|
||||||
return (int32_t)N->getZExtValue() < 32;
|
return (int32_t)N->getZExtValue() < 32;
|
||||||
|
Loading…
Reference in New Issue
Block a user