[llvm] 780a472 - [RISCV] Add SDTCisInt to the SDTRVVSlide1 since it is only used for vslide1up.vx/vslide1down.vx.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 5 13:04:20 PDT 2021
Author: Craig Topper
Date: 2021-04-05T13:03:39-07:00
New Revision: 780a47285a7839faa8cfa6b670e96371e083011c
URL: https://github.com/llvm/llvm-project/commit/780a47285a7839faa8cfa6b670e96371e083011c
DIFF: https://github.com/llvm/llvm-project/commit/780a47285a7839faa8cfa6b670e96371e083011c.diff
LOG: [RISCV] Add SDTCisInt to the SDTRVVSlide1 since it is only used for vslide1up.vx/vslide1down.vx.
The scalar type is already marked as XLenVT. The floating point
version would need a different rule.
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 433c33e9522a..70d6b3711f72 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
@@ -1137,7 +1137,7 @@ def SDTRVVSlide : SDTypeProfile<1, 5, [
SDTCVecEltisVT<4, i1>, SDTCisSameNumEltsAs<0, 4>, SDTCisVT<5, XLenVT>
]>;
def SDTRVVSlide1 : SDTypeProfile<1, 4, [
- SDTCisVec<0>, SDTCisSameAs<1, 0>, SDTCisVT<2, XLenVT>,
+ SDTCisVec<0>, SDTCisSameAs<1, 0>, SDTCisInt<0>, SDTCisVT<2, XLenVT>,
SDTCVecEltisVT<3, i1>, SDTCisSameNumEltsAs<0, 3>, SDTCisVT<4, XLenVT>
]>;
More information about the llvm-commits
mailing list