[MISched] Dump the execution trace of the schedule.
authorFrancesco Petrogalli <francesco.petrogalli@apple.com>
Mon, 23 Jan 2023 16:35:52 +0000 (17:35 +0100)
committerFrancesco Petrogalli <francesco.petrogalli@apple.com>
Thu, 26 Jan 2023 16:54:55 +0000 (17:54 +0100)
commit557ea9867f289469b40debb0f2c0a3baf9709c6d
tree3643bedc25f5c482147256f7109b741ada9e4ce3
parente1c5cbc09c6fe6ba396638ff96a10796225c97e8
[MISched] Dump the execution trace of the schedule.

The traces are printed only for bottom-up and top-down scheduling
because the values of TopReadyCycle and BottomReadyCycle are
inconsistent when obtained via bidirectional scheduling (see
`BIDIRECTIONAL` checks in the test).

Differential Revision: https://reviews.llvm.org/D142529
llvm/include/llvm/CodeGen/MachineScheduler.h
llvm/lib/CodeGen/MachineScheduler.cpp
llvm/test/CodeGen/AArch64/dump-schedule-trace.mir [new file with mode: 0644]