[llvm] [AArch64][GlobalISel] Lower G_BUILD_VECTOR to G_INSERT_VECTOR_ELT (PR #105686)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 10:22:29 PDT 2024


================
@@ -1048,6 +1048,45 @@ void applyLowerVectorFCMP(MachineInstr &MI, MachineRegisterInfo &MRI,
   MI.eraseFromParent();
 }
 
+// Intend to match the last part of
+// AArch64TargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG)
+bool matchLowerBuildToInsertVecElt(MachineInstr &MI, MachineRegisterInfo &MRI) {
+  assert(MI.getOpcode() == TargetOpcode::G_BUILD_VECTOR &&
----------------
tschuett wrote:

`GBuildVector *Build = cast<GBuildVector>(MI);`

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


More information about the llvm-commits mailing list