Commit b8c9b061 authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

[X86] LowerCTPOP - add i3 and i4 LUT 'shift+mask' expansions

Use the 3 or 4 active bits as a shift amount into a i32/i64 constant representing the number of set bits.

In future, it might be worthwhile to move this into a generic location in case other targets want to make use of them.

Another expansion pulled from #79823
parent 98a07f72
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment