[PATCH] D150755: [GlobalIsel][x86] Legalize G_CTPOP and G_CTLZ II

Sergei Barannikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 17 07:47:04 PDT 2023


barannikov88 added a comment.

In D150755#4349879 <https://reviews.llvm.org/D150755#4349879>, @tschuett wrote:

> I was also unsure about the availability, but Wikipedia claims:
> https://en.wikipedia.org/wiki/X86_Bit_manipulation_instruction_set
>
> ABM is implemented by SSE4.2 and ABM is popcount and lzcnt.

It should be possible to disable the generation of these instructions by passing -mno-popcnt / -mno-lzcnt frontend option even if SSE4.2 is enabled.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150755



More information about the llvm-commits mailing list