diff options
author | Jan Leyonberg <jan_sjodin@yahoo.com> | 2024-04-19 15:50:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 15:50:55 -0400 |
commit | 0c455ee34823cb991a35e33ff020bb7cc4e44c8a (patch) | |
tree | 762b24400af91ab653aa1e1ee9e31a1c634e1b7f /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | c32712d1763d74329b42c1cd68a24d4c0075b596 (diff) | |
download | llvm-0c455ee34823cb991a35e33ff020bb7cc4e44c8a.zip llvm-0c455ee34823cb991a35e33ff020bb7cc4e44c8a.tar.gz llvm-0c455ee34823cb991a35e33ff020bb7cc4e44c8a.tar.bz2 |
[flang][OpenMP] Use maxnum/minnum for lowering of max/min reduction operators (#89258)
This patch changes the lowering of max and min to be lowered to
arith::MaxNumFop and arith::MinNumFOp instead of using arith::MaximumFOp
and arith::MinimumFOp. The arith::MaximumFOp and arith::MinimumFOp map
to the corresponding intrinsics llvm.maximum.* and llvm.minimum.*
intrinsics which conform to the semantics specified in the draft of IEEE
754-2019, which is not supported by all hardware. Instead using
arith::MaximumFOp and arith::MinimumFOp will allow code generation for
more targets and match the code generated by clang OpenMP.
fixes #87955
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions