[PATCH] D139685: Expand usage of CreateBuildVecShuffle to make full use of vector ops

Haohai, Wen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 17:52:47 PST 2022


HaohaiWen added a comment.

> Now, when llc encounters the case that contains a lot of extract_vector_elt and a BUILD_VECTOR, it will replace these to vector_shuffle to decrease the size of code, the actions are done in createBuildVecShuffle in DAGCombiner.cpp, but now the code cannot handle the case that the size of source vector reg is more than twice the dest size.

Better to limit column width to 80.

Now, when llc encounters the case that contains a lot of
extract_vector_elt and a BUILD_VECTOR, it will replace these to
vector_shuffle to decrease the size of code, the actions are done in
createBuildVecShuffle in DAGCombiner.cpp, but now the code cannot handle
the case that the size of source vector reg is more than twice the dest
size.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139685



More information about the llvm-commits mailing list