[all-commits] [llvm/llvm-project] 76782a: [SLP]Use original vector if need to shuffle trunca...

Andrew V. Tischenko via All-commits all-commits at lists.llvm.org
Thu Jun 16 10:41:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76782a65ee86b865eb748e0417eca28fa50a0f5e
      https://github.com/llvm/llvm-project/commit/76782a65ee86b865eb748e0417eca28fa50a0f5e
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2022-06-16 (Thu, 16 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    A llvm/test/Transforms/SLPVectorizer/X86/root-trunc-extract-reuse.ll

  Log Message:
  -----------
  [SLP]Use original vector if need to shuffle truncated root.

If the root scalar is mapped to to the smallest bit width, the vector is
truncated and the types between original buildvector and extracted value
mismatched. For extract, we emit sext/zext instructions, for shuffles we
can reuse oringal vector instead of the truncated one.

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




More information about the All-commits mailing list