Unverified Commit 5d734fa4 authored by Alex Voicu's avatar Alex Voicu Committed by GitHub
Browse files

[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.
parent d48777ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment