[llvm] [AArch64] Add C1-Nano scheduling model (PR #182316)
Asher Dobrescu via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 06:58:03 PDT 2026
https://github.com/Asher8118 commented:
Thank you for your patch, I have gone through the changes up to SVE so far. I have a few comments in addition to what is mentioned in the diff:
- `SBFM` instruction using the `ASR(immediate)` alias should have latency 1, same for `UBFM` using the `UXTB`, `LSL(immediate)` or `LSR(immediate)` aliases, these should also show latency one. Currently they show latency 2. For example: `ubfm x7, x8, #55, #54` or `sbfm x3, x4, #7, #63`. Both show latency 2 when I tested them locally. This is due to the notes mentioned in the SWONG at the end of Page 13.
- Load register, immediate pre- and post-index have execution throughput of 1 in the SWOG, it is currently showing as 2 when I test it locally, eg:
```
Instruction Info:
[1]: #uOps
[2]: Latency
[3]: RThroughput
[4]: MayLoad
[5]: MayStore
[6]: HasSideEffects (U)
[1] [2] [3] [4] [5] [6] Instructions:
2 2 0.50 * ldr x0, [x1, #16]!
```
- Similarly for load vector reg, immediate pre- and post-index, eg: `ldr q0, [x1], #16`
- There is a comment on Page 33 of the SWOG that has to do with the ST1 instruction, which I think may have been missed. Tested it with this example locally: `st1 { v0.1d, v1.1d, v2.1d }, [x0]`. It is currently showing throughput of 2 when I think it should be 3.
https://github.com/llvm/llvm-project/pull/182316
More information about the llvm-commits
mailing list