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

    <tr>
        <th>Summary</th>
        <td>
            -freroll-loops command line option broken
        </td>
    </tr>

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

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

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

<pre>
    Hi,

The option "-freroll-loop" is a documented option (https://clang.llvm.org/docs/ClangCommandLineReference.html), and clang still accepts it. Though it doesn't seem to have any effect anymore.

It seems it got broken since the switch to the new pass manager. See here for some experiments/testcases:
    https://godbolt.org/z/377dfonoj

* It still works with clang-12.
*  It no longer works with clang-13. 
* Clang-13 with the option -flegacy-pass-manager does work.

Wouter
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUk2PnDAM_TVwsUAk7PBx4LCdVdVKPbUr9RwSA9kNCUrCbre_vg4z7XSrIiCx82I_P3t06m34pDN-zqqHrLq__B8XBLdF7SxknBeTR--MKYxzG9mgAwhQTu4r2ojqBu2WGLeQ1fcZ_0ivNMLOpTEva-n8TA66E2g5J__Zrauw6ou2-BUn9GgllktcTcZ7ogN0BkcACFEbA0JK3GIAHUt4XNw-L7QlFhhsxtsIAXGF6GARL0iX3wCnCWVM29V5LP-u7_MFnoLB7CKM3j2jhaCJA0QqPrzqKJcULlkWX2ETIQARFjP6Er4hwkKcYXIeglsR8MeGXidBUoURQ5Qi4KHFkRLoea_O7NToTLxK85O-um3V5Kx7-ptrxu8h8T1EeHX-OQCRWy7aFIyXN1jCWQfGWSL5H2xdwg18vvouiHjreDEZnIV8K1LJxbXkQ-gj5Dshv7s9os9xYE3TtW3b1HWuhlr1dS_yqKPB4d30BJCXtoOhvv_OeJE_370Z_pGIqO1jSXfISHN0XYrNuydqLpk6hB2T5Ke-ak75MuAkRcV6NjVMdurU9YxhV7VNwwSnObvLjRjRhCE7faBZTq09QtA-Oz3keuAV54yxjtW8qnlZK1RyPDFVq7FB7LK7ClehzZ-xzv1wUBr3OdCh0SGG2yFJqGeLeKSj-GKPi_PD2resavs2P3IPB_dfAYAmeg">