aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-28 03:10:52 +0000
committerDan Gohman <gohman@apple.com>2009-01-28 03:10:52 +0000
commitf83c81acbe5923ab6e0572f272d203d795e28185 (patch)
tree37b60637a5e65d26e2ded4f3a883ab0470564871 /lib
parent77f7a5771e01ec5ec5fdbb3af8fcc2ce31e1d4f7 (diff)
downloadexternal_llvm-f83c81acbe5923ab6e0572f272d203d795e28185.zip
external_llvm-f83c81acbe5923ab6e0572f272d203d795e28185.tar.gz
external_llvm-f83c81acbe5923ab6e0572f272d203d795e28185.tar.bz2
Use ValueType::bitsLT to simplify some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 4ee17bf..2183431 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -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
diff --git a/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
index 420a8d3..128dc33 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -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()) {