[PATCH] D58684: [AArch64][GlobalISel] Add support for 64 bit vector shuffle using TBL1

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 26 15:06:03 PST 2019


paquette added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp:1979
+      SubregIdx = AArch64::ssub;
+    } else {
+      Opc = AArch64::INSvi64gpr;
----------------
Is it possible that `EltSize` could be something invalid when it's coming into here? Should we have some error-handling?


================
Comment at: llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp:1981
+      Opc = AArch64::INSvi64gpr;
+      SubregIdx = AArch64::dsub;
+    }
----------------
Not important for this patch, but I've noticed that we have a lot of this subregister calculation code floating around.

Might be good to migrate some of this over to using a utility function for calculating the subregister index. `getSubRegForClass` does it, but I don't know if that's the best choice.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D58684





More information about the llvm-commits mailing list