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