[all-commits] [llvm/llvm-project] 801a74: [SelectionDAG] PromoteIntRes_EXTRACT_SUBVECTOR for...

sdesmalen-arm via All-commits all-commits at lists.llvm.org
Fri Sep 10 05:30:40 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 801a745dd27d60ae70b984e66b02c172d261feb0
      https://github.com/llvm/llvm-project/commit/801a745dd27d60ae70b984e66b02c172d261feb0
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
    M llvm/test/CodeGen/AArch64/sve-extract-vector.ll

  Log Message:
  -----------
  [SelectionDAG] PromoteIntRes_EXTRACT_SUBVECTOR for scalable vectors.

This patch implements legalization of EXTRACT_SUBVECTOR for the case
where the result needs promoting, and the input type is either legal
or requires splitting.

The idea is that the operation is broken down into simpler steps,
by first extracting a smaller subvector until the input vector
becomes legal or requires promotion.

Reviewed By: CarolineConcatto

Differential Revision: https://reviews.llvm.org/D109313


  Commit: ec7d8d5069bd83e8468e86108fff677aca836316
      https://github.com/llvm/llvm-project/commit/ec7d8d5069bd83e8468e86108fff677aca836316
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
    M llvm/test/CodeGen/AArch64/sve-extract-vector.ll

  Log Message:
  -----------
  [SelectionDAG] PromoteIntRes_EXTRACT_SUBVECTOR for scalable vectors (widening).

This patch implements legalization of EXTRACT_SUBVECTOR for the case
where the result needs promoting, and the input type requires widening.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D109509


Compare: https://github.com/llvm/llvm-project/compare/beb768f40b47...ec7d8d5069bd


More information about the All-commits mailing list