llvm-project
561c528b - [RISCV] Extend vp.reverse vp.load/vp.store combine to non-VP splice + reverse (#180907)

Commit
135 days ago
[RISCV] Extend vp.reverse vp.load/vp.store combine to non-VP splice + reverse (#180907) As part of #172961, we can replace vp.reverse with vector.splice.right(reverse(X), poison, EVL). This extends the existing vp.reverse(vp.load) -> vp.strided.load stride=-1 and vp.store(vp.reverse) -> vp.strided.store stride=-1 combines to also handle the splice form. It adds a pattern match helper to match both vp.reverse and vector.splice.right. If vp.reverse is removed in future, then this pattern match helper can be removed.
Author
Parents
Loading