[llvm] e96123d - [RISCV][NFC] Simplify code.
Jianjian GUAN via llvm-commits
llvm-commits at lists.llvm.org
Wed May 17 23:41:28 PDT 2023
Author: Jianjian GUAN
Date: 2023-05-18T14:41:20+08:00
New Revision: e96123dfeabc0acfac6bc45f75237a01045f4e3b
URL: https://github.com/llvm/llvm-project/commit/e96123dfeabc0acfac6bc45f75237a01045f4e3b
DIFF: https://github.com/llvm/llvm-project/commit/e96123dfeabc0acfac6bc45f75237a01045f4e3b.diff
LOG: [RISCV][NFC] Simplify code.
Use AllVectors to replace !listconcat(AllIntegerVectors, AllFloatVectors).
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D150837
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
index 7ca73f58bc46..8f1ee5b7d118 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
@@ -2395,7 +2395,7 @@ foreach vti = AllIntegerVectors in {
vti.RegClass:$rd, vti.RegClass:$rs1, GPR:$rs2, GPR:$vl, vti.Log2SEW)>;
}
-foreach vti = !listconcat(AllIntegerVectors, AllFloatVectors) in {
+foreach vti = AllVectors in {
def : Pat<(vti.Vector (riscv_slideup_vl (vti.Vector vti.RegClass:$rs3),
(vti.Vector vti.RegClass:$rs1),
uimm5:$rs2, (vti.Mask true_mask),
More information about the llvm-commits
mailing list