mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[APInt] Replace calls to setBits with more specific calls to setBitsFrom and setLowBits where possible.
llvm-svn: 301768
This commit is contained in:
parent
30229b5e5f
commit
d0c4f39c96
@ -2516,7 +2516,7 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known,
|
||||
computeKnownBits(Op.getOperand(1), Known2, DemandedElts, Depth + 1);
|
||||
KnownZeroLow = std::min(KnownZeroLow,
|
||||
Known2.Zero.countTrailingOnes());
|
||||
Known.Zero.setBits(0, KnownZeroLow);
|
||||
Known.Zero.setLowBits(KnownZeroLow);
|
||||
break;
|
||||
}
|
||||
case ISD::UADDO:
|
||||
|
@ -26701,11 +26701,11 @@ void X86TargetLowering::computeKnownBitsForTargetNode(const SDValue Op,
|
||||
break;
|
||||
LLVM_FALLTHROUGH;
|
||||
case X86ISD::SETCC:
|
||||
Known.Zero.setBits(1, BitWidth);
|
||||
Known.Zero.setBitsFrom(1);
|
||||
break;
|
||||
case X86ISD::MOVMSK: {
|
||||
unsigned NumLoBits = Op.getOperand(0).getValueType().getVectorNumElements();
|
||||
Known.Zero.setBits(NumLoBits, BitWidth);
|
||||
Known.Zero.setBitsFrom(NumLoBits);
|
||||
break;
|
||||
}
|
||||
case X86ISD::VSHLI:
|
||||
@ -26746,7 +26746,7 @@ void X86TargetLowering::computeKnownBitsForTargetNode(const SDValue Op,
|
||||
DAG.computeKnownBits(N0, Known, DemandedSrcElts, Depth + 1);
|
||||
Known.One = Known.One.zext(BitWidth);
|
||||
Known.Zero = Known.Zero.zext(BitWidth);
|
||||
Known.Zero.setBits(InBitWidth, BitWidth);
|
||||
Known.Zero.setBitsFrom(InBitWidth);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user