[PATCH] D96923: [NFC][RISCV] Use concise way to describe load/store instructions.
Hsiangkai Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 17 17:43:04 PST 2021
HsiangKai created this revision.
HsiangKai added reviewers: craig.topper, frasercrmck.
Herald added subscribers: StephenFan, vkmr, 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.
HsiangKai requested review of this revision.
Herald added a subscriber: MaskRay.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96923
Files:
llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
Index: llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
===================================================================
--- llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
+++ llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
@@ -71,15 +71,9 @@
VReg reg_class>
{
defvar load_instr =
- !cond(!eq(vlmul.value, V_M1.value): !cast<Instruction>("VL1RE"#sew#"_V"),
- !eq(vlmul.value, V_M2.value): !cast<Instruction>("VL2RE"#sew#"_V"),
- !eq(vlmul.value, V_M4.value): !cast<Instruction>("VL4RE"#sew#"_V"),
- !eq(vlmul.value, V_M8.value): !cast<Instruction>("VL8RE"#sew#"_V"));
+ !cast<Instruction>("VL"#!substr(vlmul.MX, 1)#"RE"#sew#"_V");
defvar store_instr =
- !cond(!eq(vlmul.value, V_M1.value): VS1R_V,
- !eq(vlmul.value, V_M2.value): VS2R_V,
- !eq(vlmul.value, V_M4.value): VS4R_V,
- !eq(vlmul.value, V_M8.value): VS8R_V);
+ !cast<Instruction>("VS"#!substr(vlmul.MX, 1)#"R_V");
// Load
def : Pat<(type (load BaseAddr:$rs1)),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96923.324479.patch
Type: text/x-patch
Size: 1055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210218/67e6619d/attachment.bin>
More information about the llvm-commits
mailing list