<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylUkuPmzAQ_jXmMgoCAyEcOGwbrdTDqqv20LPBE_DK2Kw9JE1_fQeSdiP1WMmPsefxffPovL62319fjrtfiox3YCIEfF9MQA0nH2DwXsOMgeVJuR5BOQ00IvR-vvLhIoWlJ7Zc4t3FebejYM5GWaDrjBF65XizARsBeZhMjOAXghWQUpEdRfZ0O3-MxiI8MhpVXHF6nGnhiNZMhjYNMzXDSIx3EfLzjZSKDPdFyPqMEBEdXAyN7D7NFn9yZpq5bq4qIJyUCfYK0azaFG7Qxp0xkhkYwg0gZFHJOtvDBRmHTI9r9lykx5J0y5Amui10UzQqUQuNPrRv2rMJBkqWYNuRaI6ieBLymdfApJYuZVr8sPb859rNwb9hT_zkCi0YWaiKQ9UkY1s2-0NWdDnWWY6HJttr7Mpc9uVJVroos8SqDm1sRfVJSOlndNPMgqiOyf_Dm1Zmklde5VVV5HWa7-taV0Upi66RvcpEmeGkjE3XOKkPQxLaLSTXJrLSmkjxQ6liNINDvLP9W6s7YTJkN91XTuPllb_g20frtpb-O2RCHjAd0nUU7v0WsrmP3eM88fxx422ypdhu-f0G1UMEkg>53859</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [OpenMP] Reductions with non-trivial types (e.g., complex) cause SPMD-zation to fail
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            openmp
      </td>
    </tr>

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

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

<pre>
    SPMD-zation is required for good performance and the copy constructor used for non-trivial types can cause us to miss out on it.

While SPMD-zation has conceptual limitations right now, the cases I've seen with complex reductions are fairly simple. While investigating #52706 we noticed this performance bug.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxlUEuPmzAQ_jXmMgoiBkJ84LBtVKmHVVftoWcDs-CVsak9Tpr--g4k7UZayY-x5_E9Oj9c2x8vz6fdH03GOzARAv5KJuAArz7A6P0ACwaOZ-16BO0GoAmh98uVDxcppJ64MsV7i_NuR8GcjbZA1wUj9Nrx5gIuAvIwmxjBJ4IVkHJRnETxdDt_TsYiPDKadFxxelwo8URrZkNbhpmacSLGuwj5-UZKR4b7KmRzRoiIDi6GJm6fF4u_WdnAXLdWHRBetQn2CtGs2Rxu0MadMZIZGcKNIGRZy6Y4wAUZh0yPq3o26dGSLo15NrTloEqlMzJksRX1p28LuucXUZ_g-zvuxuejQ0IeMR_zVcedrJDq7tmjGWwes7ZZCradiJYoyichv_AaeXDqcu7mh7Xnf9duCf4Ne-Inu54wclCXx1plU1v1Sqm-6DQ2Valr1TVHdegqJVWFVSGbzOoObVzFCCk965kXDlhSZlpZSF77el_X5b7J94emGeqykmWnZK8LURU4M9V8JZH7MGah3fiwW5GT1kSK70kdoxkd4h3rbfBsMAa6w-lEkw_t_-9s09JuQv4C-nXvJQ">