[PATCH] D132281: [RISCV] Remove unused code
LiqinWeng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 20 00:55:51 PDT 2022
Miss_Grape created this revision.
Miss_Grape added a reviewer: benshi001.
Herald added subscribers: sunshaoce, VincentWu, luke957, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
Miss_Grape requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, jacquesguan, MaskRay.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
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.454170.patch
Type: text/x-patch
Size: 1186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220820/fd4c65c5/attachment.bin>
More information about the llvm-commits
mailing list