Skip to content
Unverified Commit 956cf0e5 authored by NimishMishra's avatar NimishMishra Committed by GitHub
Browse files

[flang][OpenMP] Fix min reduction initialization (#73102)

Initialization of reduction variable for min-reduction is set to largest
negative value. As such, in presence of non-negative operands, min
reduction gives incorrect output. This patch initialises min-reduction
to use the maximum positive value instead, so that it can produce
correct output for the entire range of real valued operands.

Fixes https://github.com/llvm/llvm-project/issues/73101
parent 95828eed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment