[all-commits] [llvm/llvm-project] f1c8b7: [SLP]Improve handling gathers/buildvectors with un...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Fri Feb 24 13:21:41 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1c8b72c13f12b8711f652291d434f921a5c9a66
      https://github.com/llvm/llvm-project/commit/f1c8b72c13f12b8711f652291d434f921a5c9a66
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2023-02-24 (Fri, 24 Feb 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/X86/landing_pad.ll
    M llvm/test/Transforms/SLPVectorizer/X86/phi3.ll
    M llvm/test/Transforms/SLPVectorizer/X86/pr35497.ll
    M llvm/test/Transforms/SLPVectorizer/X86/remark_extract_broadcast.ll
    M llvm/test/Transforms/SLPVectorizer/X86/vectorize-pair-path.ll

  Log Message:
  -----------
  [SLP]Improve handling gathers/buildvectors with undefs.

If have just one non-undef scalar in the buildvector/gather node, we try
to put it to be the very first element, which is profitable in most
cases. Do the preliminary estimation, if this more profitable during
graph rotation and do same for all elements, including extractelements.

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




More information about the All-commits mailing list