[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 9 21:06:58 PST 2025
================
@@ -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:
Comment why. Also should add a fixme that we should check subtarget feature. Technically SI didn't have these
https://github.com/llvm/llvm-project/pull/104661
More information about the cfe-commits
mailing list