From: Craig Topper Date: Thu, 21 Apr 2016 06:39:32 +0000 (+0000) Subject: [X86] Remove redundant calls to setOperationAction for EXTRACT_VECTOR_ELT/INSERT_VECT... X-Git-Tag: llvmorg-3.9.0-rc1~8498 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7dedfdc60adc3ffe1f319c497066b8bad1b5ca2d;p=platform%2Fupstream%2Fllvm.git [X86] Remove redundant calls to setOperationAction for EXTRACT_VECTOR_ELT/INSERT_VECTOR_ELT from SSE41 block. They were already done in an earlier block. NFC llvm-svn: 266962 --- diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index e00b4f8..6182504 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -928,26 +928,9 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM, setLoadExtAction(ISD::ZEXTLOAD, MVT::v2i64, MVT::v2i16, Legal); setLoadExtAction(ISD::ZEXTLOAD, MVT::v2i64, MVT::v2i32, Legal); - // i8 and i16 vectors are custom because the source register and source - // source memory operand types are not the same width. f32 vectors are - // custom since the immediate controlling the insert encodes additional - // information. + // i8 vectors are custom because the source register and source + // source memory operand types are not the same width. setOperationAction(ISD::INSERT_VECTOR_ELT, MVT::v16i8, Custom); - setOperationAction(ISD::INSERT_VECTOR_ELT, MVT::v8i16, Custom); - setOperationAction(ISD::INSERT_VECTOR_ELT, MVT::v4i32, Custom); - setOperationAction(ISD::INSERT_VECTOR_ELT, MVT::v4f32, Custom); - - setOperationAction(ISD::EXTRACT_VECTOR_ELT, MVT::v16i8, Custom); - setOperationAction(ISD::EXTRACT_VECTOR_ELT, MVT::v8i16, Custom); - setOperationAction(ISD::EXTRACT_VECTOR_ELT, MVT::v4i32, Custom); - setOperationAction(ISD::EXTRACT_VECTOR_ELT, MVT::v4f32, Custom); - - // FIXME: these should be Legal, but that's only for the case where - // the index is constant. For now custom expand to deal with that. - if (Subtarget.is64Bit()) { - setOperationAction(ISD::INSERT_VECTOR_ELT, MVT::v2i64, Custom); - setOperationAction(ISD::EXTRACT_VECTOR_ELT, MVT::v2i64, Custom); - } } if (!Subtarget.useSoftFloat() && Subtarget.hasXOP()) {