[RISCV] Tighten type constraint for RISCVISD::FCLASS_VL.
authorCraig Topper <craig.topper@sifive.com>
Fri, 26 May 2023 18:49:55 +0000 (11:49 -0700)
committerCraig Topper <craig.topper@sifive.com>
Fri, 26 May 2023 18:49:55 +0000 (11:49 -0700)
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td

index 6ba45a2..ac333e6 100644 (file)
@@ -133,6 +133,7 @@ def riscv_fclass_vl : SDNode<"RISCVISD::FCLASS_VL",
                              SDTypeProfile<1, 3, [SDTCisInt<0>, SDTCisVec<0>,
                                                   SDTCisFP<1>, SDTCisVec<1>,
                                                   SDTCisSameSizeAs<0, 1>,
+                                                  SDTCisSameNumEltsAs<0, 1>,
                                                   SDTCVecEltisVT<2, i1>,
                                                   SDTCisSameNumEltsAs<0, 2>,
                                                   SDTCisVT<3, XLenVT>]>>;