[llvm] [RISCV] Promote SETCC and VP_SETCC of f16 vectors when only have zvfhmin (PR #66866)
Jianjian Guan via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 26 19:41:17 PDT 2023
================
@@ -603,6 +609,31 @@ void VectorLegalizer::PromoteReduction(SDNode *Node,
Results.push_back(Res);
}
+void VectorLegalizer::PromoteSETCC(SDNode *Node,
+ SmallVectorImpl<SDValue> &Results) {
+ MVT VecVT = Node->getOperand(0).getSimpleValueType();
+ MVT NewVecVT = TLI.getTypeToPromoteTo(Node->getOpcode(), VecVT);
+
+ unsigned ExtOp = VecVT.isFloatingPoint() ? ISD::FP_EXTEND : ISD::ANY_EXTEND;
+
+ SDLoc DL(Node);
+ SmallVector<SDValue, 4> Operands(Node->getNumOperands());
----------------
jacquesguan wrote:
Fixed, thanks.
https://github.com/llvm/llvm-project/pull/66866
More information about the llvm-commits
mailing list