[all-commits] [llvm/llvm-project] 2388aa: [NARY-REASSOCIATE] Support reassociation of min/max

ebrevnov via All-commits all-commits at lists.llvm.org
Fri Apr 2 01:30:39 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2388aae401dcb0903b1aa904d2f810fcf30edbfc
      https://github.com/llvm/llvm-project/commit/2388aae401dcb0903b1aa904d2f810fcf30edbfc
  Author: Evgeniy Brevnov <ybrevnov at azul.com>
  Date:   2021-04-02 (Fri, 02 Apr 2021)

  Changed paths:
    M llvm/include/llvm/IR/PatternMatch.h
    M llvm/include/llvm/Transforms/Scalar/NaryReassociate.h
    M llvm/lib/Transforms/Scalar/NaryReassociate.cpp
    M llvm/test/Transforms/NaryReassociate/nary-smax.ll
    M llvm/test/Transforms/NaryReassociate/nary-smin.ll
    M llvm/test/Transforms/NaryReassociate/nary-umax.ll
    M llvm/test/Transforms/NaryReassociate/nary-umin.ll

  Log Message:
  -----------
  [NARY-REASSOCIATE] Support reassociation of min/max

Support reassociation for min/max. With that we should be able to transform min(min(a, b), c) -> min(min(a, c), b) if min(a, c) is already available.

Reviewed By: mkazantsev, lebedev.ri

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




More information about the All-commits mailing list