[llvm] [MachineScheduler][ScheduleDAG] Add ability to bias scheduling by longest paths (PR #93223)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Mon May 27 15:01:23 PDT 2024


michaelmaitland wrote:

> Is there any way to add a unit test to demonstrate the improved assembly code on RISC-V?

I have attempted to add a test that does this. However, it seems like such a test would not be stable: on some runs, the critical path version ends up being the same as the longer paths version. Other times, the critical path version is different from the longer paths version. 

This leads the test to pass some times and to fail other times. The benefit of using the test I add in this patch, is that it is deterministic.

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


More information about the llvm-commits mailing list