<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/58195>58195</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [OpenMP][Flang] Handling reductions in a function called inside a worksharing loop construct
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          kiranchandramohan
      </td>
    </tr>
</table>

<pre>
    Currently, flang lowering of reductions is limited to cases where the reduction operation appears directly inside the loop. It is possible in Fortran for the reduction to be inside a function called in the loop body.

CHECK: Does the OpenMP standard permit this?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUdGO2yAQ_Br7ZVULg2M7DzzkkkZXVVX7CxjWNj0CFuBG9_ddO42uqipZMHh3h5lhCOZdntcY0Wf3XvAzjE75CVy4Y7QEwggRzaqzDT6BTeDszWY0kANolTDBfcaIkGf8aISwYFQ7UsuCKiYwNqKmK8D6ZM2j34WwVPAlb7RLSMkODqkO1xBzVB7GEP_hpUsHfFIoGFf_-K-Vc6SJZp-8MJCzqmCXgp0e6_n18_lrIU5wCaR66_u-oP_2A1JW3qhogESTNyrZVIhribJu2wNrec-a0khhjuKoymyzQ1kcXh7TxeFC-LqFRhBeicptuf0dmv-v1D8e7iG-pVntYe_CNc3kSMPlGp2cc15IzangV_omm-d1qHS40cG5X8_t0xLDT8qXjjalFROBQ18fD-UseyOE4oJ3vcCBYy1429amUarXXddoVjo1oEubpYJzj3fYKQiTodJKzjivGWu3wUZUR9bVHY6daLpODLorGoY3ZV216ahCnMood0nDOiUqOpty-igqeubJ457gxq_WPIco3yw9uJ4pvahugfZyFyF3E78Bf6zkgg">