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 | 46a6e79e602b23ea3478027d5bdd1f904aea7924 (patch) | |
tree | 90d674eca01d05d52bdd394518dd2bc76db5c154 | |
parent | 38200692fa2ab19d052191c8c04d71d29a36a5b3 (diff) | |
download | external_llvm-46a6e79e602b23ea3478027d5bdd1f904aea7924.zip external_llvm-46a6e79e602b23ea3478027d5bdd1f904aea7924.tar.gz external_llvm-46a6e79e602b23ea3478027d5bdd1f904aea7924.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); |