[all-commits] [llvm/llvm-project] 9e5016: [flang] Fold real-valued DIM()

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue May 10 07:45:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e50168be444dc6cc076fe3ac3d0fb73dfca7428
      https://github.com/llvm/llvm-project/commit/9e50168be444dc6cc076fe3ac3d0fb73dfca7428
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-05-10 (Tue, 10 May 2022)

  Changed paths:
    M flang/include/flang/Evaluate/common.h
    M flang/include/flang/Evaluate/real.h
    M flang/lib/Evaluate/fold-real.cpp
    M flang/lib/Evaluate/real.cpp
    A flang/test/Evaluate/fold-dim.f90
    M flang/test/Evaluate/folding03.f90

  Log Message:
  -----------
  [flang] Fold real-valued DIM()

Fold references to the intrinsic function DIM with constant real
arguments.  And clean up folding of comparisons with NaNs to address
a problem noticed in testing -- NaNs should successfully compare
unequal to all values, including themselves, instead of failing all
comparisons.

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




More information about the All-commits mailing list