Issue 55421
Summary -falign-loops not honored
Labels new issue
Assignees
Reporter gchatelet
    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>
```


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to