diff options
author | Dan Gohman <gohman@apple.com> | 2009-01-28 03:10:52 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-01-28 03:10:52 +0000 |
commit | b3bbde3e62d04ecc868109b7873db702bdfecf1b (patch) | |
tree | 41a53912997bf897f2d6a5007962c580917a2ba5 /llvm/lib/CodeGen | |
parent | 172ad92b290e492bb8d66ee39c6a8ea4299568b0 (diff) | |
download | bcm5719-llvm-b3bbde3e62d04ecc868109b7873db702bdfecf1b.tar.gz bcm5719-llvm-b3bbde3e62d04ecc868109b7873db702bdfecf1b.zip |
Use ValueType::bitsLT to simplify some code.
llvm-svn: 63170
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 4ee17bf807c..2183431e1aa 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/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/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp index 420a8d374c6..128dc3351e4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp +++ b/llvm/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()) { |