smithp35 wrote:

No objections from me. I would prefer there not to be a difference for assembly 
at different optimisation levels.

I can't find any evidence that this affects Arm (Thumb to be precise) assembly 
at all. For example:
```
        .text
        b dest    // b.n 2-byte branch
        b dest2  // b.w 4-byte branch
        nop
dest:
        nop
        .space 2048
dest2:
        nop
```
Regardless of what -mrelax-all is (or the llvm-mc equivalent) the first `b 
dest` is always the smaller branch.

https://github.com/llvm/llvm-project/pull/90013
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to