[PATCH] D108276: [AArch64][GlobalISel] Add G_VECREDUCE fewerElements support for full scalarization.
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 19 13:58:15 PDT 2021
paquette added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:4690
+ unsigned Opc = MI.getOpcode();
+ assert(Opc != TargetOpcode::G_VECREDUCE_SEQ_FADD &&
+ Opc != TargetOpcode::G_VECREDUCE_SEQ_FMUL &&
----------------
Maybe in a later patch it would be good to add a wrapper for these instructions which has an `isSequential` function
================
Comment at: llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp:701
+ LLT SrcTy = Q.Types[1];
+ if (SrcTy.isScalar())
+ return false;
----------------
Can this happen? Looks like the MachineVerifier doesn't permit scalar sources?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108276/new/
https://reviews.llvm.org/D108276
More information about the llvm-commits
mailing list