Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RISCV] Change heuristic used for load clustering
Split out from #73789. Clusters if the operations are within a cache line of each other (as AMDGPU does in shouldScheduleLoadsNear). X86 does something similar, but does `((Offset2 - Offset1) / 8 > 64)`. I'm not sure if that's intentionally set to 512 bytes or if the division is in error. Adopts the suggestion from @wangpc-pp to query the cache line size and use it if available.
- Loading branch information