[all-commits] [llvm/llvm-project] 283c2e: [flang][semantics] fix issue with equality of min/...

Andre Kuhlenschmidt via All-commits all-commits at lists.llvm.org
Thu Jun 26 12:16:19 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 283c2e8d7c9fe6fbf78849dbd3bf715459e6d1bd
      https://github.com/llvm/llvm-project/commit/283c2e8d7c9fe6fbf78849dbd3bf715459e6d1bd
  Author: Andre Kuhlenschmidt <andre.kuhlenschmidt at gmail.com>
  Date:   2025-06-26 (Thu, 26 Jun 2025)

  Changed paths:
    M flang/include/flang/Evaluate/tools.h
    M flang/lib/Evaluate/fold-implementation.h
    M flang/test/Lower/HLFIR/custom-intrinsic.f90
    M flang/test/Lower/OpenMP/reduction-array-intrinsic.f90
    M flang/test/Lower/OpenMP/wsloop-reduction-allocatable-array-minmax.f90
    M flang/test/Lower/OpenMP/wsloop-reduction-max-byref.f90
    M flang/test/Lower/OpenMP/wsloop-reduction-max.f90
    M flang/test/Lower/OpenMP/wsloop-reduction-min-byref.f90
    M flang/test/Lower/OpenMP/wsloop-reduction-min.f90
    A flang/test/Semantics/function-result-extent-max.f90

  Log Message:
  -----------
  [flang][semantics] fix issue with equality of min/max in module files (#145824)

Convert all binary calls of min/max to extremum operations, so that
extremums generated by the compiler compare equal, and user min/max
calls also compare equal.

Fixes #133646

Originally opened as #144162 but I accidentally pushed a merge in such a
way that a bunch of code owners got added to the review. This is just
rebasing the original work on main and fixing the failing tests.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list