[PATCH] D114198: [GlobalISel] Rework more/fewer elements for vectors
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 21 09:14:37 PST 2021
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:3698
+ MachineOperand &Op) {
+ assert((Op.isReg() || Op.isImm() || Op.isPredicate()) && "Unsupported type");
+ for (unsigned i = 0; i < N; ++i) {
----------------
Convert if chain to else if and use llvm_unreachable instead of having to keep this list consistent
================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:3743
+ // Split vector input operands into NumElts sub-vectors + Leftover. Other
+ // operands (listed in NonVecOpIndices) will be used as is witout splitting;
+ // examples: compare predicate in icmp and fcmp (op 1), vector select with i1
----------------
Typo witout
================
Comment at: llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp:231
+ auto Unmerge = buildUnmerge(Op0Ty.getElementType(), Op0);
+ SmallVector<Register, 4> Regs;
+ for (auto Op : Unmerge.getInstr()->defs())
----------------
arsenm wrote:
> 4 seems too small, use the default or 8?
Same applies elsewhere in patch
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114198/new/
https://reviews.llvm.org/D114198
More information about the llvm-commits
mailing list