[PATCH] D133491: [AArch64] Try to fold shuffle (tbl2, tbl2) to tbl4.

Tim Northover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 20 01:46:52 PDT 2022


t.p.northover added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:10734
+      return false;
+    for (unsigned I = 0; I < 8; I++) {
+      if (!isa<ConstantSDNode>(Mask->getOperand(I)))
----------------
Would also need to extend this check. Or perhaps better only check the indices that are actually used by the shuffle, so move this into the main loop later.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133491



More information about the llvm-commits mailing list