[PATCH] D81416: [LV][SLP] Interleave to expose ILP for small loops with scalar reductions.

Aaron H Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 16 09:54:15 PDT 2020


AaronLiu added a comment.

In D81416#2095961 <https://reviews.llvm.org/D81416#2095961>, @spatel wrote:

> IIUC, we should add a test under test/Transforms/PhaseOrdering with -O2 to show the cooperative effect of the 2 vectorizers rather than a stand-alone SLP test.
>  If you can push that test with full baseline CHECK lines and then apply this patch and show test diffs, that would make it much easier to tell what is intended with this patch.


Thanks for the comment. This patch does not intend to change phase order. In this patch, we interleave for small loops with scalar reductions which cannot be vectorized by LV, and later on SLP catch the opportunities. Interleaving is done by LV, and vectorization is done by SLP.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81416/new/

https://reviews.llvm.org/D81416





More information about the llvm-commits mailing list