1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

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

llvm-svn: 300091
This commit is contained in:
Craig Topper 2017-04-12 18:39:27 +00:00
parent 19ecb63f39
commit 9be0fc31bf

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,