[llvm] [AArch64][NeoverseV1] Load pair immed offset LDPXi, LDNPXi, LDPX<pre|… (PR #221718)

Julien Villette via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 12:56:55 PDT 2026


jvillette38 wrote:

Thanks for your review and experiments!

I am agree with you result about ldpsw offset. I have fixed it.
Regarding LDP X form, the first patch is also agree with your results of throughput of 1!

I have done some more experiments to get info about executed uops using:
`taskset -c 0 perf stat -r 5 -e cycles,instructions,inst_spec,op_spec ./bench_chains3 ldpx_tp 500000`

As explained in second commit message:
```
LD[N]P X-form occupies three load slots but issues as a single
micro-op, so its SchedWriteRes no longer sets NumMicroOps = 3.

Modelling writeback forms on V1UnitL01 matches the measured
throughput and micro-op counts.
```

Final resume of the patches in this PR: 

| Instruction              | uop | Latency | RThroughput | was (uop/lat/rthr) |
|--------------------------|-----|---------|-------------|--------------------|
| `ldp` (X-form, offset)   | 1   | 4       | 1.00        | 2/4/0.67           |
| `ldnp` (X-form)          | 1   | 4       | 1.00        | 2/4/0.67           |
| `ldpsw` (offset)         | 3   | 5       | 0.67        | 2/5/0.33           |
| `ldp` (X-form, pre/post) | 2   | 4       | 1.00        | 3/4/0.67           |
| `ldp` (W-form, pre/post) | 2   | 4       | 0.50        | 2/4/0.33           |
| `ldpsw` (pre/post)       | 4   | 5       | 1.00        | 3/5/0.50           |

Regards,
Julien

https://github.com/llvm/llvm-project/pull/221718


More information about the llvm-commits mailing list