[all-commits] [llvm/llvm-project] d42ccd: [BOLT][AArch64] Fix adr-relaxation.s test

Paschalis Mpeis via All-commits all-commits at lists.llvm.org
Tue Jun 10 03:41:36 PDT 2025


  Branch: refs/heads/users/paschalis-mpeis/adr-relaxation-failure
  Home:   https://github.com/llvm/llvm-project
  Commit: d42ccd5c6afef96d9e16924c35e99c9bf5154b2e
      https://github.com/llvm/llvm-project/commit/d42ccd5c6afef96d9e16924c35e99c9bf5154b2e
  Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
  Date:   2025-06-10 (Tue, 10 Jun 2025)

  Changed paths:
    M bolt/test/AArch64/adr-relaxation.s

  Log Message:
  -----------
  [BOLT][AArch64] Fix adr-relaxation.s test

On some AArch64 machines the splitting was inconsistent.
This causes cold `foo` to have a `mov` instruction before adrp.

```
<foo.cold.0>:
      mov     x0, #0x0                // =0
      adrp    x1, 0x600000 <_start>
      add     x1, x1, #0x14
      ret
```

This patch removes the `mov` instruction right above .L2, making
splitting deterministic.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list