[PATCH] D148347: [AArch64] Handle vector with two different values

JinGu Kang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 17 00:02:15 PDT 2023


jaykang10 added a comment.

In D148347#4269669 <https://reviews.llvm.org/D148347#4269669>, @efriedma wrote:

> Instead of special-casing this specific pattern, maybe it makes sense to generalize to all BUILD_VECTORs with two values?  Even for a completely arbitrary shuffle, you can still lower that to 5 instructions: VSELECT mask, DUP op1, DUP op2.

Thanks for comment. @efriedma That's good point.
Let me try to add the VSELECT with two DUPs.


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

https://reviews.llvm.org/D148347



More information about the llvm-commits mailing list