[PATCH] D94501: [SelectionDAG] Support scalable-vector splats in more cases
Fraser Cormack via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 12 08:52:40 PST 2021
frasercrmck added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:5031
SDValue Shift, Factor;
- if (VT.isVector()) {
+ if (VT.isFixedLengthVector()) {
Shift = DAG.getBuildVector(ShVT, dl, Shifts);
----------------
In general, is `isFixedLengthVector || isScalableVector` a suitable replacement for `isVector`, or should we be more explicit/future-proof about the possibility of a third case?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94501/new/
https://reviews.llvm.org/D94501
More information about the llvm-commits
mailing list