[all-commits] [llvm/llvm-project] 0e21f1: [SelectionDAG] Extend WidenVecOp_INSERT_SUBVECTOR ...

paulwalker-arm via All-commits all-commits at lists.llvm.org
Fri Jun 17 05:41:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e21f1d56a5008d9b4226a25df39d0381b058d7a
      https://github.com/llvm/llvm-project/commit/0e21f1d56a5008d9b4226a25df39d0381b058d7a
  Author: Paul Walker <paul.walker at arm.com>
  Date:   2022-06-17 (Fri, 17 Jun 2022)

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

  Log Message:
  -----------
  [SelectionDAG] Extend WidenVecOp_INSERT_SUBVECTOR to cover more cases.

WidenVecOp_INSERT_SUBVECTOR only supported cases where widening
effectively converts the insert into a copy.  However, when the
widened subvector is no bigger than the vector being inserted into
and we can be sure there's no loss of data, we can simply emit
another INSERT_SUBVECTOR.

Fixes: #54982

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




More information about the All-commits mailing list