[all-commits] [llvm/llvm-project] e484e1: [SVE] Fix casts to <FixedVectorType> in truncateTo...

kmclaughlin-arm via All-commits all-commits at lists.llvm.org
Mon Jul 26 05:46:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e484e1ae03325823c469684d7d1532f2aadbe98d
      https://github.com/llvm/llvm-project/commit/e484e1ae03325823c469684d7d1532f2aadbe98d
  Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
  Date:   2021-07-26 (Mon, 26 Jul 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  -----------
  [SVE] Fix casts to <FixedVectorType> in truncateToMinimalBitwidths

Fixes more casts to `<FixedVectorType>` for the cases where the
instruction is a Insert/ExtractElementInst.

For fixed-width, this part of truncateToMinimalBitWidths is tested by
AArch64/type-shrinkage-insertelt.ll. I attempted to write a test case for this part
of truncateToMinimalBitWidths which uses scalable vectors, but was unable to add
one. The tests in type-shrinkage-insertelt.ll rely on scalarization to create extract
element instructions for instance, which is not possible for scalable vectors.

Reviewed By: david-arm

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




More information about the All-commits mailing list