[llvm] [RISCV] Add load/store clustering in post machine schedule (PR #111504)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 11 10:29:10 PDT 2024


topperc wrote:

Why is this what we want?

```
ld a1, 0(a0)
ld a2, 8(a0)
addi a3, a1, 1
addi a4, a2, 1
```

What is problem if there is an add between them? Is there some fusion going on in the hardware? I understand why you want them loads ordered near each other if they access the same cache line, but I don't understand why arithmetic between them is bad?

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


More information about the llvm-commits mailing list