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

David Green via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 28 06:17:34 PDT 2024


================
@@ -1054,6 +1054,40 @@ void applyLowerVectorFCMP(MachineInstr &MI, MachineRegisterInfo &MRI,
   MI.eraseFromParent();
 }
 
+// Matches G_BUILD_VECTOR where at least one source operand is not a constant
+bool matchLowerBuildToInsertVecElt(MachineInstr &MI, MachineRegisterInfo &MRI) {
+  auto *GBuildVec = dyn_cast<GBuildVector>(&MI);
----------------
davemgreen wrote:

dyn_cast -> cast

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


More information about the llvm-commits mailing list