[all-commits] [llvm/llvm-project] c16600: [SLP]Reorder counters for same values, if the root...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Mon Apr 3 07:55:30 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1660006b2809a17e9e33034252306a703fdb720
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2023-04-03 (Mon, 03 Apr 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/X86/same-scalars-reordered-in-reduction.ll

  Log Message:
  [SLP]Reorder counters for same values, if the root node is reordered.

The counters for the repeated scalars are ordered in the natural order,
but the original scalars might be reordered during SLP graph reordering
and this order can be dropped. Need to use the scalars after the
reordering, not the original ones, to emit correct code for same value

More information about the All-commits mailing list