mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-22 20:26:31 +00:00
Use ValueType::bitsLT to simplify some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63170 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
77f7a5771e
commit
f83c81acbe
@ -8515,7 +8515,7 @@ SDValue SelectionDAGLegalize::StoreWidenVectorOp(StoreSDNode *ST,
|
||||
// It must be true that we the widen vector type is bigger than where
|
||||
// we need to store.
|
||||
assert(StVT.isVector() && VVT.isVector());
|
||||
assert(StVT.getSizeInBits() < VVT.getSizeInBits());
|
||||
assert(StVT.bitsLT(VVT));
|
||||
assert(StVT.getVectorElementType() == VVT.getVectorElementType());
|
||||
|
||||
// Store value
|
||||
|
@ -1865,7 +1865,7 @@ SDValue DAGTypeLegalizer::WidenVecOp_STORE(SDNode *N) {
|
||||
// It must be true that we the widen vector type is bigger than where
|
||||
// we need to store.
|
||||
assert(StVT.isVector() && ValOp.getValueType().isVector());
|
||||
assert(StVT.getSizeInBits() < ValOp.getValueType().getSizeInBits());
|
||||
assert(StVT.bitsLT(ValOp.getValueType()));
|
||||
|
||||
SmallVector<SDValue, 16> StChain;
|
||||
if (ST->isTruncatingStore()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user