[flang-commits] [PATCH] D125146: [flang] Fold real-valued DIM()
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Fri May 6 16:57:06 PDT 2022
klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
klausler requested review of this revision.
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.
https://reviews.llvm.org/D125146
Files:
flang/include/flang/Evaluate/common.h
flang/include/flang/Evaluate/real.h
flang/lib/Evaluate/fold-real.cpp
flang/lib/Evaluate/real.cpp
flang/test/Evaluate/fold-dim.f90
flang/test/Evaluate/folding03.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125146.427792.patch
Type: text/x-patch
Size: 4877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220506/dc6351d9/attachment.bin>
More information about the flang-commits
mailing list