[all-commits] [llvm/llvm-project] 1a8ec2: [NARY-REASSOCIATE][NFC] Simplify min/max handling

ebrevnov via All-commits all-commits at lists.llvm.org
Thu Oct 21 01:46:08 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a8ec24efbae282f39eaacd5b22f37c2d8cad12f
      https://github.com/llvm/llvm-project/commit/1a8ec24efbae282f39eaacd5b22f37c2d8cad12f
  Author: Evgeniy Brevnov <ybrevnov at azul.com>
  Date:   2021-10-21 (Thu, 21 Oct 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/NaryReassociate.cpp

  Log Message:
  -----------
  [NARY-REASSOCIATE][NFC] Simplify min/max handling

In order to explore different variants of reassociation current implementation uses "swap in a loop" approach. Unfortunately, the implementation is more complicated than it could be. This is an attempt to streamline the code. New approach is to extract core functionality into a helper function and call it explicitly as many times as required.

Reviewed By: nikic

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




More information about the All-commits mailing list