mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-05 03:46:27 +00:00
[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:
parent
718593b3f9
commit
c5de42f38f
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user