diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-09 17:56:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-09 17:56:34 +0000 |
commit | 419e907901bf2fe0f73f8a2b22dd9f0708735133 (patch) | |
tree | 90d674eca01d05d52bdd394518dd2bc76db5c154 | |
parent | d24d319a7285a1c0f5d36459082da983cc72de95 (diff) | |
download | external_llvm-419e907901bf2fe0f73f8a2b22dd9f0708735133.zip external_llvm-419e907901bf2fe0f73f8a2b22dd9f0708735133.tar.gz external_llvm-419e907901bf2fe0f73f8a2b22dd9f0708735133.tar.bz2 |
Duncan points out that the subtraction is unneeded since hte code
knows the vector is not pow2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44740 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeTypesSplit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypesSplit.cpp b/lib/CodeGen/SelectionDAG/LegalizeTypesSplit.cpp index c77bf12..685ae9e 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeTypesSplit.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeTypesSplit.cpp @@ -27,7 +27,7 @@ static void GetSplitDestVTs(MVT::ValueType InVT, NumElements >>= 1; Lo = Hi = MVT::getVectorType(NewEltVT, NumElements); } else { // Non-power-of-two vectors. - unsigned NewNumElts_Lo = 1 << Log2_32(NumElements-1); + unsigned NewNumElts_Lo = 1 << Log2_32(NumElements); unsigned NewNumElts_Hi = NumElements - NewNumElts_Lo; Lo = MVT::getVectorType(NewEltVT, NewNumElts_Lo); Hi = MVT::getVectorType(NewEltVT, NewNumElts_Hi); |