[llvm] [AArch64][GlobalISel] Legalize Insert vector element (PR #81453)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 06:00:38 PST 2024
================
@@ -2121,6 +2120,36 @@ bool AArch64InstructionSelector::preISelLower(MachineInstr &I) {
}
return false;
}
+ case TargetOpcode::G_INSERT_VECTOR_ELT: {
+ // The tablegen patterns for integer insert_vector_elts with small elements
+ // will expect the operand to be legalized to a i32 type. This extends the
+ // types of i8 and i16 element inserts, so that the existing tablegen
+ // patterns can apply.
----------------
arsenm wrote:
regbank-dependant legalization is part of regbankselect; the apply mapping should apply any regbank related legalization work
https://github.com/llvm/llvm-project/pull/81453
More information about the llvm-commits
mailing list