[all-commits] [llvm/llvm-project] a7478f: [SLP] Fix order of `insertelement`/`insertvalue` s...

Anton Afanasyev via All-commits all-commits at lists.llvm.org
Thu Aug 6 12:10:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a7478fab6ce82532c1545614362a3688e8a4ed36
      https://github.com/llvm/llvm-project/commit/a7478fab6ce82532c1545614362a3688e8a4ed36
  Author: Anton Afanasyev <anton.a.afanasyev at gmail.com>
  Date:   2020-08-06 (Thu, 06 Aug 2020)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/PhaseOrdering/X86/horiz-math.ll
    M llvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector.ll
    M llvm/test/Transforms/SLPVectorizer/X86/pr42022.ll
    M llvm/test/Transforms/SLPVectorizer/X86/pr44067.ll

  Log Message:
  -----------
  [SLP] Fix order of `insertelement`/`insertvalue` seed operands

Summary:
This patch takes the indices operands of `insertelement`/`insertvalue`
into account while generation of seed elements for `findBuildAggregate()`.
This function has kept the original order of `insert`s before.
Also this patch optimizes `findBuildAggregate()` preventing it from
redundant temporary vector allocations and its multiple reversing.

Fixes llvm.org/pr44067

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list