[PATCH] D132281: [RISCV] Remove unused code
LiqinWeng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 20 02:26:23 PDT 2022
Miss_Grape updated this revision to Diff 454185.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132281/new/
https://reviews.llvm.org/D132281
Files:
llvm/lib/Target/RISCV/RISCVInstrInfo.td
Index: llvm/lib/Target/RISCV/RISCVInstrInfo.td
===================================================================
--- llvm/lib/Target/RISCV/RISCVInstrInfo.td
+++ llvm/lib/Target/RISCV/RISCVInstrInfo.td
@@ -366,15 +366,6 @@
def simm12_plus1 : ImmLeaf<XLenVT,
[{return (isInt<12>(Imm) && Imm != -2048) || Imm == 2048;}]>;
-// A 12-bit signed immediate sub one and exclude zero
-def simm12_minus1_nonzero : PatLeaf<(imm), [{
- if (!N->hasOneUse())
- return false;
- // The immediate operand must be in range [-2049, 0) or (0, 2046].
- int64_t Imm = N->getSExtValue();
- return (Imm >= -2049 && Imm < 0) || (Imm > 0 && Imm <= 2046);
-}]>;
-
// A 6-bit constant greater than 32.
def uimm6gt32 : ImmLeaf<XLenVT, [{
return isUInt<6>(Imm) && Imm > 32;
@@ -398,12 +389,6 @@
N->getValueType(0));
}]>;
-// Return an immediate value plus 1.
-def ImmPlus1 : SDNodeXForm<imm, [{
- return CurDAG->getTargetConstant(N->getSExtValue() + 1, SDLoc(N),
- N->getValueType(0));
-}]>;
-
// Return an immediate subtracted from XLen.
def ImmSubFromXLen : SDNodeXForm<imm, [{
uint64_t XLen = Subtarget->getXLen();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132281.454185.patch
Type: text/x-patch
Size: 1186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220820/cba623ad/attachment.bin>
More information about the llvm-commits
mailing list