[llvm] [AArch64][GlobalISel] Perfect Shuffles (PR #106446)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 02:28:12 PDT 2024


================
@@ -504,6 +504,189 @@ void applyINS(MachineInstr &MI, MachineRegisterInfo &MRI,
   MI.eraseFromParent();
 }
 
+/// Match 4 elemental G_SHUFFLE_VECTOR
+bool matchPerfectShuffle(MachineInstr &MI, MachineRegisterInfo &MRI) {
+  assert(MI.getOpcode() == TargetOpcode::G_SHUFFLE_VECTOR);
----------------
tschuett wrote:

cast to GShuffleVector

https://github.com/llvm/llvm-project/pull/106446


More information about the llvm-commits mailing list