llvm-project
1b4a632f - [VPlan] Transform reverse loads into vp.strided.load with -1 stride

Commit
3 days ago
[VPlan] Transform reverse loads into vp.strided.load with -1 stride Rebased from the WIP on loop-vectorize/reverse-vp-strided-load. After simplifyReverses pulls reverses out of elementwise recipes, look through single-use elementwise trees under a reverse to the reverse consecutive loads at their leaves (live-ins are allowed as splats), and replace each load with a vp.strided.load with a negative stride when it is legal and cheaper than the loads plus the reverse. This is the VPlan equivalent of RISC-V's performReverseEVLCombine. Fixes #204154.
Author
Committer
Parents
Loading