[all-commits] [llvm/llvm-project] 38bb79: [Flang][OpenMP] Add support for OpenMP MIN reduction

kavitha-natarajan via All-commits all-commits at lists.llvm.org
Wed Apr 19 23:45:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 38bb79beac50ab4dda18b29d869c9000a7d916bc
      https://github.com/llvm/llvm-project/commit/38bb79beac50ab4dda18b29d869c9000a7d916bc
  Author: Kavitha Natarajan <kavitha.natarajan at amd.com>
  Date:   2023-04-20 (Thu, 20 Apr 2023)

  Changed paths:
    M flang/lib/Lower/OpenMP.cpp
    R flang/test/Lower/OpenMP/Todo/reduction-min.f90
    A flang/test/Lower/OpenMP/wsloop-reduction-min.f90

  Log Message:
  -----------
  [Flang][OpenMP] Add support for OpenMP MIN reduction

This patch adds support for reduction of min-intrinsic for scalar
types. Min is lowered as a compare-select in the default lowering
flow for Flang. This pattern is matched and replaced with the
OpenMP dialect reduction operation.

Note: This is a temporary flow. The plan is to move to a flow
where the OpenMP reduction operation is inserted during lowering.




More information about the All-commits mailing list