[llvm] [SDAG] [X86] Extend SplitVecOp_VSETCC for STRICT_FSETCCS (PR #116768)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 02:37:56 PST 2024
================
@@ -4252,21 +4254,19 @@ SDValue DAGTypeLegalizer::SplitVecOp_VSETCC(SDNode *N) {
EVT PartResVT = EVT::getVectorVT(Context, MVT::i1, PartEltCnt);
EVT WideResVT = EVT::getVectorVT(Context, MVT::i1, PartEltCnt*2);
- if (N->getOpcode() == ISD::SETCC) {
+ if (Opc == ISD::SETCC) {
LoRes = DAG.getNode(ISD::SETCC, DL, PartResVT, Lo0, Lo1, N->getOperand(2));
HiRes = DAG.getNode(ISD::SETCC, DL, PartResVT, Hi0, Hi1, N->getOperand(2));
- } else if (N->getOpcode() == ISD::STRICT_FSETCC) {
- LoRes = DAG.getNode(ISD::STRICT_FSETCC, DL,
- DAG.getVTList(PartResVT, N->getValueType(1)),
+ } else if (Opc == ISD::STRICT_FSETCC || Opc == ISD::STRICT_FSETCCS) {
----------------
phoebewang wrote:
`else if (isStrict)`
https://github.com/llvm/llvm-project/pull/116768
More information about the llvm-commits
mailing list