[PATCH] D82483: [SVE] Code generation for fixed length vector adds.
Paul Walker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 26 10:55:45 PDT 2020
paulwalker-arm marked 2 inline comments as done.
paulwalker-arm added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:14797
+
+static SDValue getPredicateForVector(SelectionDAG &DAG, SDLoc &DL, EVT VT) {
+ if (VT.isFixedLengthVector())
----------------
sdesmalen wrote:
> nit: is `getAllTruePredicate` not a better name given the value this function returns? (similar for `getAllTruePredicateFor(Scalable|FixedLength)Vector`)
getPredicateForFixedLengthVector (and by extension getPredicateForVector) doesn't return an AllTrue predicate but rather a predicate with only the first VT.getNumElts() being true with everything else being false.
I think we're going to have a similar situation with types like <n x 2 x f32> so tried to avoid AllTrue since that's an artifact of our current ISEL rather than representative of what is actually going on.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82483/new/
https://reviews.llvm.org/D82483
More information about the llvm-commits
mailing list