llvm-project
c202d2f5 - [IA][RISCV] Recognizing gap masks assembled from bitwise AND (#153324)

Commit
46 days ago
[IA][RISCV] Recognizing gap masks assembled from bitwise AND (#153324) For a deinterleaved masked.load / vp.load, if it's mask, `%c`, is synthesized by the following snippet: ``` %m = shufflevector %s, poison, <0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3> %g = <1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0> %c = and %m, %g ``` Then we can know that `%g` is the gap mask and `%s` is the mask for each field / component. This patch teaches InterleaveAccess pass to recognize such patterns
Author
Parents
Loading