================ @@ -52,6 +52,14 @@ class AMDGPUABIInfo final : public DefaultABIInfo { void computeInfo(CGFunctionInfo &FI) const override; RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, AggValueSlot Slot) const override; + + llvm::FixedVectorType * + getOptimalVectorType(llvm::FixedVectorType *T, + const LangOptions &Opt) const override { + if (T->getNumElements() == 3 && T->getScalarSizeInBits() == 32) ---------------- arsenm wrote:
Should use the datalayout to get the size https://github.com/llvm/llvm-project/pull/104661 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits