From f85eadaa6ccffc6c5a27a8a327903fc73bac55bd Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 26 Jan 2018 07:15:16 +0000 Subject: [PATCH] [X86] Remove some dead code from LowerVSETCC. NFC This code was added in r321967, but ultimately I fixed the issue in the legalizer and this code was no longer required. llvm-svn: 323500 --- lib/Target/X86/X86ISelLowering.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 9a713d417b8..9f7cbb78664 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -17851,19 +17851,6 @@ static SDValue LowerVSETCC(SDValue Op, const X86Subtarget &Subtarget, assert(EltVT == MVT::f32 || EltVT == MVT::f64); #endif - // Custom widen MVT::v2f32 to prevent the default widening - // from getting a result type of v4i32, extracting it to v2i32 and then - // trying to sign extend that to v2i1. - if (VT == MVT::v2i1 && Op1.getValueType() == MVT::v2f32) { - Op0 = DAG.getNode(ISD::CONCAT_VECTORS, dl, MVT::v4f32, Op0, - DAG.getUNDEF(MVT::v2f32)); - Op1 = DAG.getNode(ISD::CONCAT_VECTORS, dl, MVT::v4f32, Op1, - DAG.getUNDEF(MVT::v2f32)); - SDValue NewOp = DAG.getNode(ISD::SETCC, dl, MVT::v4i1, Op0, Op1, CC); - return DAG.getNode(ISD::EXTRACT_SUBVECTOR, dl, MVT::v2i1, NewOp, - DAG.getIntPtrConstant(0, dl)); - } - unsigned Opc; if (Subtarget.hasAVX512() && VT.getVectorElementType() == MVT::i1) { assert(VT.getVectorNumElements() <= 16);