[llvm] [AArch64][GlobalISel] Legalize Insert vector element (PR #81453)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 02:58:53 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:
This is doing legalization work. The selector code should be as simple as possible (i.e., you shouldn't have to preprocess anything for the patterns to work)
https://github.com/llvm/llvm-project/pull/81453
More information about the llvm-commits
mailing list