[all-commits] [llvm/llvm-project] 0d153d: [SVE] Fix selection failure when splitting extende...

kmclaughlin-arm via All-commits all-commits at lists.llvm.org
Thu Oct 21 05:05:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d153df69e8fe28bdf7e65195d3708f331106088
      https://github.com/llvm/llvm-project/commit/0d153df69e8fe28bdf7e65195d3708f331106088
  Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
  Date:   2021-10-21 (Thu, 21 Oct 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/test/CodeGen/AArch64/sve-masked-ldst-sext.ll
    M llvm/test/CodeGen/AArch64/sve-masked-ldst-zext.ll

  Log Message:
  -----------
  [SVE] Fix selection failure when splitting extended masked loads

When splitting a masked load, `GetDependentSplitDestVTs` is used to get the
MemVTs of the high and low parts. If the masked load is extended, this
may return VTs with different element types which are used to create the
high & low masked load instructions.
This patch changes `GetDependentSplitDestVTs` to ensure we return VTs with
the same element type.

Reviewed By: david-arm

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




More information about the All-commits mailing list