[SelectionDAG] Use APInt move assignment to avoid 2 memory allocations and copies when bit width is larger than 64-bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300091 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2017-04-12 18:39:27 +00:00
parent 718593b3f9
commit c5de42f38f

View File

@ -731,8 +731,8 @@ bool TargetLowering::SimplifyDemandedBits(SDValue Op,
}
}
KnownZero = KnownZeroOut;
KnownOne = KnownOneOut;
KnownZero = std::move(KnownZeroOut);
KnownOne = std::move(KnownOneOut);
break;
case ISD::SELECT:
if (SimplifyDemandedBits(Op.getOperand(2), NewMask, KnownZero,