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

ebrevnov via All-commits all-commits at lists.llvm.org
Thu Feb 25 03:23:05 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 83d134c3c4222e8b8d3d90c099f749a3b3abc8e0
      https://github.com/llvm/llvm-project/commit/83d134c3c4222e8b8d3d90c099f749a3b3abc8e0
  Author: Evgeniy Brevnov <ybrevnov at azul.com>
  Date:   2021-02-25 (Thu, 25 Feb 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

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




More information about the All-commits mailing list