[all-commits] [llvm/llvm-project] 9e83d1: [LICM] Support logical AND/OR when hoisting min/max

Max Kazantsev via All-commits all-commits at lists.llvm.org
Fri Mar 10 03:07:42 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e83d13c9f77e300ebb7b94a1400de3c2d47b3d5
      https://github.com/llvm/llvm-project/commit/9e83d13c9f77e300ebb7b94a1400de3c2d47b3d5
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2023-03-10 (Fri, 10 Mar 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LICM.cpp
    M llvm/test/Transforms/LICM/min_max.ll

  Log Message:
  -----------
  [LICM] Support logical AND/OR when hoisting min/max

We can handle logical AND/OR in the same way as arithmetic AND/OR, it only
takes us freezing `RHS2` for which we may introduce a new use which didn't
exist before dynamically.

Differential Revision: https://reviews.llvm.org/D145771
Reviewed By: nikic




More information about the All-commits mailing list