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

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 13:50:43 PDT 2023


efriedma added a comment.

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.


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

https://reviews.llvm.org/D148347



More information about the llvm-commits mailing list