[PATCH] D102498: [AArch64][SVE] Improve codegen for fixed length vector concat
JunMa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 20 19:01:50 PDT 2021
junparser added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:17694
+SDValue AArch64TargetLowering::LowerFixedLengthConcatVectorsToSVE(
+ SDValue Op, SelectionDAG &DAG) const {
----------------
paulwalker-arm wrote:
> junparser wrote:
> > bsmith wrote:
> > > paulwalker-arm wrote:
> > > > junparser wrote:
> > > > > bsmith wrote:
> > > > > > junparser wrote:
> > > > > > > Can we still use ConcatVector here and then lower it performConcatVectorsCombine or td file?
> > > > > > This is consistent with how all other fixed length operations are handled. The issue with trying to do this in tablegen, is that we'd have to add patterns for every single <= 2048-bit vector type, which is just going to cause an explosion of patterns.
> > > > > Still we can keep ConcatVector here, and lowering to SPLICE in performConcatVectorsCombine at later phase.
> > > > @junparser This wouldn't follow the design we have for SVE's fixed-length code generation support. Our intent is to exit operation legalisation with all fixed-length operations replaced with scalable vector equivalents.
> > > @junparser If what you meant here is that we could lower to a scalable CONCAT_VECTOR and then later lower/match that to a splice instruction, that doesn't work well either as we won't have a sensible way to get at the fixed sizes being used which are required to produce the correct predicate for the instruction, hence making it very difficult to later lower/match to a splice.
> > make sense to me. Meanwhile, is there any plan to improve such issue? @paulwalker-arm
> @junparser It's not clear to me what issue needs solving here.
As @bsmith said, Is there a snesible way to keep general ISD node, and transform to AArch64 ISD node at last for SVE's fixed-length code generation?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102498/new/
https://reviews.llvm.org/D102498
More information about the llvm-commits
mailing list