[flang-commits] [flang] [flang] Fetch the initial reduction value from the input array. (PR #136790)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Thu Apr 24 07:54:34 PDT 2025


vzakhari wrote:

We used to use +/-Inf in the `OptimizedBufferization`, but with my changes I started getting failures on some tests.  It was probably in gfortran suite (which is following gfortran behavior, of course).  I am not sure if I saw failures in other suites.  I will try to recollect the results.

@klausler can you please comment on Jean's question above?  The current HLFIR inlining follows the Fortran runtime implementation, but should we change both? I did not find any handling of NaNs in MINMAXLOCVAL specification in the standard, but it might be specified in some other section.

https://github.com/llvm/llvm-project/pull/136790


More information about the flang-commits mailing list