diff options
author | NimishMishra <42909663+NimishMishra@users.noreply.github.com> | 2023-11-22 03:40:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 03:40:18 -0800 |
commit | 956cf0e5de4b816ccba64206ead8bc2d4fd22158 (patch) | |
tree | d3f75148c79c9d0e92b4a460146226f5019eb65f /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 95828eed41a678818a5f51b39a8d93a82ad36db7 (diff) | |
download | llvm-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