Fix merge-typo and cleanup

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156541 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nadav Rotem 2012-05-10 12:50:02 +00:00
parent b210651654
commit b88e8dd31d

View File

@ -4980,11 +4980,9 @@ X86TargetLowering::LowerVectorBroadcast(SDValue &Op, SelectionDAG &DAG) const {
return SDValue(); return SDValue();
SDValue Sc = Op.getOperand(0); SDValue Sc = Op.getOperand(0);
if (Sc.getOpcode() == ISD::SCALAR_TO_VECTOR) if (Sc.getOpcode() != ISD::SCALAR_TO_VECTOR &&
Ld = Sc.getOperand(0); Sc.getOpcode() != ISD::BUILD_VECTOR)
else if (Sc.getOpcode() == ISD::BUILD_VECTOR) return SDValue();
Ld = Sc.getOperand(0);
else return SDValue();
Ld = Sc.getOperand(0); Ld = Sc.getOperand(0);
ConstSplatVal = (Ld.getOpcode() == ISD::Constant || ConstSplatVal = (Ld.getOpcode() == ISD::Constant ||