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:
Dan Gohman 2009-01-28 03:10:52 +00:00
parent 77f7a5771e
commit f83c81acbe
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()) {