[llvm] r317997 - [X86] Remove some no longer needed intrinsic lowering code.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 12 10:51:07 PST 2017
Author: ctopper
Date: Sun Nov 12 10:51:06 2017
New Revision: 317997
URL: http://llvm.org/viewvc/llvm-project?rev=317997&view=rev
Log:
[X86] Remove some no longer needed intrinsic lowering code.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=317997&r1=317996&r2=317997&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Nov 12 10:51:06 2017
@@ -20307,23 +20307,6 @@ SDValue X86TargetLowering::LowerINTRINSI
DAG.getIntPtrConstant(0, dl));
return DAG.getBitcast(Op.getValueType(), Res);
}
- case BRCST32x2_TO_VEC: {
- SDValue Src = Op.getOperand(1);
- SDValue PassThru = Op.getOperand(2);
- SDValue Mask = Op.getOperand(3);
-
- assert((VT.getScalarType() == MVT::i32 ||
- VT.getScalarType() == MVT::f32) && "Unexpected type!");
- //bitcast Src to packed 64
- MVT ScalarVT = VT.getScalarType() == MVT::i32 ? MVT::i64 : MVT::f64;
- MVT BitcastVT = MVT::getVectorVT(ScalarVT, Src.getValueSizeInBits()/64);
- Src = DAG.getBitcast(BitcastVT, Src);
- MVT ResVT = MVT::getVectorVT(ScalarVT, VT.getSizeInBits()/64);
- SDValue Res = DAG.getNode(IntrData->Opc0, dl, ResVT, Src);
- Res = DAG.getBitcast(VT, Res);
-
- return getVectorMaskingNode(Res, Mask, PassThru, Subtarget, DAG);
- }
default:
break;
}
Modified: llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h?rev=317997&r1=317996&r2=317997&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h (original)
+++ llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h Sun Nov 12 10:51:06 2017
@@ -33,7 +33,7 @@ enum IntrinsicType : uint16_t {
IFMA_OP_MASK, IFMA_OP_MASKZ,
VPERM_2OP_MASK, VPERM_3OP_MASK, VPERM_3OP_MASKZ, INTR_TYPE_SCALAR_MASK,
INTR_TYPE_SCALAR_MASK_RM, INTR_TYPE_3OP_SCALAR_MASK_RM,
- COMPRESS_EXPAND_IN_REG, COMPRESS_TO_MEM, BRCST32x2_TO_VEC,
+ COMPRESS_EXPAND_IN_REG, COMPRESS_TO_MEM,
TRUNCATE_TO_MEM_VI8, TRUNCATE_TO_MEM_VI16, TRUNCATE_TO_MEM_VI32,
EXPAND_FROM_MEM,
TERLOG_OP_MASK, TERLOG_OP_MASKZ, BROADCASTM, KUNPCK, FIXUPIMM, FIXUPIMM_MASKZ, FIXUPIMMS,
More information about the llvm-commits
mailing list