[PATCH] D69334: [MathExtras] Add intrinsic for the PopulationCounter in Visual Studio

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 23 15:24:25 PDT 2019


craig.topper added a comment.

I'm pretty sure MSVC will always turn this into a popcnt instruction on X86. It has no fall back because MSVC doesn't have a concept of a target CPU. So this would only work on a Nehalem or newer CPU that implements the instruction.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69334/new/

https://reviews.llvm.org/D69334





More information about the llvm-commits mailing list