[all-commits] [llvm/llvm-project] 79e623: [SLP]Use revectorized value for extracts from buil...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Thu Jan 4 06:53:10 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79e62315be5b762f399e98c0b638e682eac66322
      https://github.com/llvm/llvm-project/commit/79e62315be5b762f399e98c0b638e682eac66322
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2024-01-04 (Thu, 04 Jan 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/X86/gather_extract_from_vectorbuild.ll

  Log Message:
  -----------
  [SLP]Use revectorized value for extracts from buildvector, beeing
vectorized.

When trying to reuse the extractelement instruction, emitted for the
insertelement instruction, need to check, if the this insertelement
instruction was vectorized. In this case, need to use vectorized value,
not the original insertelement.




More information about the All-commits mailing list