Commit 066773c4 authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

[X86] computeKnownBitsForTargetNode - add generic handling of PSHUFB

When PSHUFB is used as a LUT (for CTPOP, BITREVERSE etc.), its the source operand that is constant and the index operand the variable. As long as the indices don't set the MSB (which zeros the output element), then the common known bits from the source operand can be used directly, even though the shuffle mask isn't constant.

Further helps to improve CTPOP reduction codegen
parent 94100bc2
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