mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Using popcount should check the popcount feature flag not the SSE41 feature flag.
llvm-svn: 190258
This commit is contained in:
parent
e36b8e4d0f
commit
9f2cedc02b
@ -127,8 +127,8 @@ X86TTI::PopcntSupportKind X86TTI::getPopcntSupport(unsigned TyWidth) const {
|
||||
assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
|
||||
// TODO: Currently the __builtin_popcount() implementation using SSE3
|
||||
// instructions is inefficient. Once the problem is fixed, we should
|
||||
// call ST->hasSSE3() instead of ST->hasSSE4().
|
||||
return ST->hasSSE41() ? PSK_FastHardware : PSK_Software;
|
||||
// call ST->hasSSE3() instead of ST->hasPOPCNT().
|
||||
return ST->hasPOPCNT() ? PSK_FastHardware : PSK_Software;
|
||||
}
|
||||
|
||||
unsigned X86TTI::getNumberOfRegisters(bool Vector) const {
|
||||
|
Loading…
Reference in New Issue
Block a user