Alex Voicu 5d734fa4c8
[llvm][SPIRV] Expose fast popcnt support for SPIR-V targets (#109845)
This adds the TTI predicate for conveying the availability of fast
`popcnt`, which subsequently allows passes like `LoopIdiomRecognize` to
collapse known popcount patterns. Since SPIR-V natively exposes
`OpBitcount`, it seems preferable to compress the resulting code, and
retain the information, even if a concrete target might have to expand
back into a loop structure.
2024-09-28 16:45:32 +01:00
..