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

    <tr>
        <th>Summary</th>
        <td>
            -falign-loops not honored
        </td>
    </tr>

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

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

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

<pre>
    It seems that `-falign-loops` is not honored when the loop happens far away from the start of the function.

Here is a reproducer : https://godbolt.org/z/q1zbdoYrj
`falign_loops_honored` and `falign_loops_not_honored` are semantically equivalent, only the loop position is different.
When the loop is close to the start of the function it gets aligned.
```
jb     1300 <_Z20falign_loops_honoredPcPKcm+0x80>
```
If it's further away it is not aligned anymore.
```
jb     1212 <_Z24falign_loops_not_honoredPcPKcm+0xd2>
```


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9k8FymzAQhp9GXDRmhADbHDg4ST3N9JJbp714hLSAPLLkSCKu8_RdME3iTFxGCJbd2f3-1dI4da4fIw0Ah0BjLyIlS7ZohdGdXRjnjgFtqgO1LtLeWedB0VMPFoOBjgG0F8cj2EBb4ak4iTNtvTtM7hCFj9S1k9EOVkbtbErYA2Gby_4dPIzZBfVw9E4NEjwl-Yb2MWLpfEP4FlfnVONMTJ3v0HrF-zl7bZT75fdztiW7MO8m5t1MOrILq-hnN4q5CkGIAAdho5bCmDOF50G_CAM2En5PncVPb3KPLuhRx4itdNuiAhtnUT-vGoMB0rgANLrb7aA60g4itmDkA5W-CZrXZO4bOl5Zzhi25373m3-p90k-_ZAHwu_YnzUj-bcvcz22WJPwFZ7Y4BFlPjXkmI95JsHOnQ-Y9f9EPOMzUXGrxR-oFL9FddkTVeeqyiuRRB0N1FeT-HEGk8Gb-tOQ6NgPTSodltoa8_LvscDB2oNEyVsdwgABX8qy4FnS13K5qgrJ2rJZqwZYUbVlVWQMVJHlvFqJxIgGTKhJeUc4t3CiUwp8J-VDomvOOGclHkvF12WVLousykEquV42soUlKRiOlTbpyDFOb-LrCakZuoBOo0MM704Rwth5mMphfjHE3vm6k_hfgoGYTMXrCf4vTkgzHw">