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 | 64443973c0c1f68625413cd50ffecd8b812b19af (patch) | |
tree | 5fffbb0e398c4279cd9e48e6bab38a26255a1648 /llvm/lib | |
parent | 93cd101e5c1d42f53acd1da47ee3305c630c876a (diff) | |
download | bcm5719-llvm-64443973c0c1f68625413cd50ffecd8b812b19af.tar.gz bcm5719-llvm-64443973c0c1f68625413cd50ffecd8b812b19af.zip |
Duncan points out that the subtraction is unneeded since hte code
knows the vector is not pow2
llvm-svn: 44740
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeTypesSplit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypesSplit.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypesSplit.cpp index c77bf12d9a3..685ae9e76b8 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypesSplit.cpp +++ b/llvm/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); |