[all-commits] [llvm/llvm-project] 5fcb07: [SLP]Fix a bug in min/max reduction, number of con...

cilkplus via All-commits all-commits at lists.llvm.org
Fri Apr 2 07:25:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5fcb07a07020f6011128f9fe384fdef65cbcc7b7
      https://github.com/llvm/llvm-project/commit/5fcb07a07020f6011128f9fe384fdef65cbcc7b7
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-04-02 (Fri, 02 Apr 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/X86/horizontal-minmax.ll
    M llvm/test/Transforms/SLPVectorizer/X86/used-reduced-op.ll

  Log Message:
  -----------
  [SLP]Fix a bug in min/max reduction, number of condition uses.

The ultimate reduction node may have multiple uses, but if the ultimate
reduction is min/max reduction and based on SelectInstruction, the
condition of this select instruction must have only single use.

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




More information about the All-commits mailing list