[all-commits] [llvm/llvm-project] 799033: Reland "[SLP] Consider alternatives for cost of se...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Oct 31 09:59:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 799033d8c569616fbf7c829f2e9b01d5adf4cd6f
      https://github.com/llvm/llvm-project/commit/799033d8c569616fbf7c829f2e9b01d5adf4cd6f
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-10-31 (Sat, 31 Oct 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/ValueTracking.h
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/vectorizable-selects-min-max.ll
    A llvm/test/Transforms/SLPVectorizer/X86/float-min-max.ll

  Log Message:
  -----------
  Reland "[SLP] Consider alternatives for cost of select instructions."

This reverts the revert commit a1b53db32418cb6ed6f5b2054d15a22b5aa3aeb9.

This patch includes a fix for a reported issue, caused by
matchSelectPattern returning UMIN for selects of pointers in
some cases by looking to some connected casts.

For now, ensure integer instrinsics are only returned for selects of
ints or int vectors.




More information about the All-commits mailing list