forked from OSchip/llvm-project
Remove a bitcast that was a no-op.
Thanks to Eli Friedman for noticing it. llvm-svn: 77942
This commit is contained in:
parent
4f4b643afa
commit
854d34a9fb
|
@ -4448,9 +4448,7 @@ X86TargetLowering::LowerSCALAR_TO_VECTOR(SDValue Op, SelectionDAG &DAG) {
|
|||
Op.getOperand(0))));
|
||||
|
||||
if (Op.getValueType() == MVT::v1i64 && Op.getOperand(0).getValueType() == MVT::i64)
|
||||
return DAG.getNode(ISD::BIT_CONVERT, dl, MVT::v1i64,
|
||||
DAG.getNode(ISD::SCALAR_TO_VECTOR, dl, MVT::v1i64,
|
||||
Op.getOperand(0)));
|
||||
return DAG.getNode(ISD::SCALAR_TO_VECTOR, dl, MVT::v1i64, Op.getOperand(0));
|
||||
|
||||
SDValue AnyExt = DAG.getNode(ISD::ANY_EXTEND, dl, MVT::i32, Op.getOperand(0));
|
||||
MVT VT = MVT::v2i32;
|
||||
|
|
Loading…
Reference in New Issue