Skip to content

Commit 1868799

Browse files
committed
Revert "disable optimizations for PopCount (dotnet#99796)"
This reverts commit aee4957.
1 parent 14252bd commit 1868799

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/coreclr/jit/utils.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3439,11 +3439,6 @@ uint32_t BitOperations::Log2(uint64_t value)
34393439
// Return Value:
34403440
// The population count (number of bits set) of value
34413441
//
3442-
#if defined(_MSC_VER)
3443-
// Disable optimizations for PopCount to avoid the compiler from generating intrinsics
3444-
// not supported on all platforms.
3445-
#pragma optimize("", off)
3446-
#endif // _MSC_VER
34473442
uint32_t BitOperations::PopCount(uint32_t value)
34483443
{
34493444
#if defined(_MSC_VER)
@@ -3496,9 +3491,6 @@ uint32_t BitOperations::PopCount(uint64_t value)
34963491
return static_cast<uint32_t>(result);
34973492
#endif
34983493
}
3499-
#if defined(_MSC_VER)
3500-
#pragma optimize("", on)
3501-
#endif // _MSC_VER
35023494

35033495
//------------------------------------------------------------------------
35043496
// BitOperations::ReverseBits: Reverses the bits in an integer value

0 commit comments

Comments
 (0)