aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorNimishMishra <42909663+NimishMishra@users.noreply.github.com>2023-11-22 03:40:18 -0800
committerGitHub <noreply@github.com>2023-11-22 03:40:18 -0800
commit956cf0e5de4b816ccba64206ead8bc2d4fd22158 (patch)
treed3f75148c79c9d0e92b4a460146226f5019eb65f /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent95828eed41a678818a5f51b39a8d93a82ad36db7 (diff)
downloadllvm-956cf0e5de4b816ccba64206ead8bc2d4fd22158.zip
llvm-956cf0e5de4b816ccba64206ead8bc2d4fd22158.tar.gz
llvm-956cf0e5de4b816ccba64206ead8bc2d4fd22158.tar.bz2
[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
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions