mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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
This commit is contained in:
parent
38200692fa
commit
46a6e79e60
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user