Index: llvm/lib/Target/RISCV/RISCVISelLowering.cpp =================================================================== --- llvm/lib/Target/RISCV/RISCVISelLowering.cpp +++ llvm/lib/Target/RISCV/RISCVISelLowering.cpp @@ -11997,10 +11997,6 @@ if (Subtarget.hasShortForwardBranchOpt()) return SDValue(); - // Only support XLenVT. - if (N->getValueType(0) != Subtarget.getXLenVT()) - return SDValue(); - SDValue TrueVal = N->getOperand(1); SDValue FalseVal = N->getOperand(2); if (SDValue V = tryFoldSelectIntoOp(N, DAG, TrueVal, FalseVal, /*Swapped*/false))