[llvm] [AArch64][GlobalISel] Legalize G_STORE for v4s8 vector (PR #82498)
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 22 23:59:11 PST 2024
================
@@ -1599,6 +1602,18 @@ bool AArch64LegalizerInfo::legalizeLoadStore(
Register ValReg = MI.getOperand(0).getReg();
const LLT ValTy = MRI.getType(ValReg);
+ // G_STORE v4s8, ptr => s32 = G_BITCAST v4s8
+ // G_STORE s32, ptr
+ if (ValTy.isVector() && ValTy.getNumElements() == 4 &&
----------------
aemerson wrote:
If you're just checking for a specific type you can do `if (ValTy == LLT::fixed_vector(4, 8))`
https://github.com/llvm/llvm-project/pull/82498
More information about the llvm-commits
mailing list