[all-commits] [llvm/llvm-project] 73f949: [SLP] Fix crash when matching associative reductio...

Valery Dmitriev via All-commits all-commits at lists.llvm.org
Thu Mar 11 11:54:48 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73f94969b29f0154288cbc6f17cc44ea004cc069
      https://github.com/llvm/llvm-project/commit/73f94969b29f0154288cbc6f17cc44ea004cc069
  Author: Valery N Dmitriev <valery.n.dmitriev at intel.com>
  Date:   2021-03-11 (Thu, 11 Mar 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    A llvm/test/Transforms/SLPVectorizer/slp-umax-rdx-matcher-crash.ll

  Log Message:
  -----------
  [SLP] Fix crash when matching associative reduction for integer min/max.

Associative reduction matcher in SLP begins with select instruction but when
it reached call to llvm.umax (or alike) via def-use chain the latter also matched
as UMax kind. The routine's later code assumes matched instruction to be a select
and thus it merely died on the first encountered cast that did not fit.

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




More information about the All-commits mailing list