[llvm] [RISCV] Disable combineToVCPOP for illegal scalable vector types. (PR #140195)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu May 15 23:11:28 PDT 2025


================
@@ -18814,9 +18818,6 @@ static SDValue combineToVCPOP(SDNode *N, SelectionDAG &DAG,
 
   MVT ContainerVT = SrcMVT;
   if (SrcMVT.isFixedLengthVector()) {
-    if (!useRVVForFixedLengthVectorVT(SrcMVT, Subtarget))
----------------
topperc wrote:

This should be equivalent to the isTypeLegal check so I removed it.

https://github.com/llvm/llvm-project/pull/140195


More information about the llvm-commits mailing list