mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 00:33:10 +00:00
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28581 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cb30906402
commit
8f692e2457
@ -2758,11 +2758,8 @@ X86TargetLowering::LowerEXTRACT_VECTOR_ELT(SDOperand Op, SelectionDAG &DAG) {
|
|||||||
unsigned Idx = cast<ConstantSDNode>(Op.getOperand(1))->getValue();
|
unsigned Idx = cast<ConstantSDNode>(Op.getOperand(1))->getValue();
|
||||||
if (Idx == 0)
|
if (Idx == 0)
|
||||||
return Op;
|
return Op;
|
||||||
|
|
||||||
// SHUFPS the element to the lowest double word, then movss.
|
// SHUFPS the element to the lowest double word, then movss.
|
||||||
MVT::ValueType MaskVT = MVT::getIntVectorWithNumElements(4);
|
MVT::ValueType MaskVT = MVT::getIntVectorWithNumElements(4);
|
||||||
SDOperand IdxNode = DAG.getConstant((Idx < 2) ? Idx : Idx+4,
|
|
||||||
MVT::getVectorBaseType(MaskVT));
|
|
||||||
std::vector<SDOperand> IdxVec;
|
std::vector<SDOperand> IdxVec;
|
||||||
IdxVec.push_back(DAG.getConstant(Idx, MVT::getVectorBaseType(MaskVT)));
|
IdxVec.push_back(DAG.getConstant(Idx, MVT::getVectorBaseType(MaskVT)));
|
||||||
IdxVec.push_back(DAG.getNode(ISD::UNDEF, MVT::getVectorBaseType(MaskVT)));
|
IdxVec.push_back(DAG.getNode(ISD::UNDEF, MVT::getVectorBaseType(MaskVT)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user