mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Using popcount should check the popcount feature flag not the SSE41 feature flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
baaefaf828
commit
89bf2e163c
@ -127,8 +127,8 @@ X86TTI::PopcntSupportKind X86TTI::getPopcntSupport(unsigned TyWidth) const {
|
|||||||
assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
|
assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
|
||||||
// TODO: Currently the __builtin_popcount() implementation using SSE3
|
// TODO: Currently the __builtin_popcount() implementation using SSE3
|
||||||
// instructions is inefficient. Once the problem is fixed, we should
|
// instructions is inefficient. Once the problem is fixed, we should
|
||||||
// call ST->hasSSE3() instead of ST->hasSSE4().
|
// call ST->hasSSE3() instead of ST->hasPOPCNT().
|
||||||
return ST->hasSSE41() ? PSK_FastHardware : PSK_Software;
|
return ST->hasPOPCNT() ? PSK_FastHardware : PSK_Software;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned X86TTI::getNumberOfRegisters(bool Vector) const {
|
unsigned X86TTI::getNumberOfRegisters(bool Vector) const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user