[all-commits] [llvm/llvm-project] a7d80f: [Flang][OpenMP] Add support for OpenMP max reduction

kiranchandramohan via All-commits all-commits at lists.llvm.org
Tue Mar 14 09:02:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a7d80f43cb8d3a2deb09f57d0904732d40020752
      https://github.com/llvm/llvm-project/commit/a7d80f43cb8d3a2deb09f57d0904732d40020752
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2023-03-14 (Tue, 14 Mar 2023)

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

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

This patch adds support for reduction of max-intrinsic for scalar
types. Max 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.

Reviewed By: do

Differential Revision: https://reviews.llvm.org/D145083




More information about the All-commits mailing list