[all-commits] [llvm/llvm-project] 956cf0: [flang][OpenMP] Fix min reduction initialization (...
NimishMishra via All-commits
all-commits at lists.llvm.org
Wed Nov 22 03:40:33 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 956cf0e5de4b816ccba64206ead8bc2d4fd22158
https://github.com/llvm/llvm-project/commit/956cf0e5de4b816ccba64206ead8bc2d4fd22158
Author: NimishMishra <42909663+NimishMishra at users.noreply.github.com>
Date: 2023-11-22 (Wed, 22 Nov 2023)
Changed paths:
M flang/lib/Lower/OpenMP.cpp
M flang/test/Lower/OpenMP/FIR/wsloop-reduction-min.f90
M flang/test/Lower/OpenMP/wsloop-reduction-min.f90
Log Message:
-----------
[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
More information about the All-commits
mailing list