Recommit [SchedBoundary] Add dump method for resource usage.
authorFrancesco Petrogalli <francesco.petrogalli@apple.com>
Fri, 13 Jan 2023 10:16:37 +0000 (11:16 +0100)
committerFrancesco Petrogalli <francesco.petrogalli@apple.com>
Fri, 13 Jan 2023 10:42:05 +0000 (11:42 +0100)
commitaba8983c9d86793b3388e7966389e51708fba9bd
tree178291aec661c6a01d83aa5bf2319518ba1e9b09
parent2f9f11180fde50cbd6d6263d3d305d9ae9b1d535
Recommit [SchedBoundary] Add dump method for resource usage.

Summary:
As supporting information, I have added an example that describes how
the indexes of the vector of resources SchedBoundary::ReservedCycles
are tracked by the field SchedBoundary::ReservedCyclesIndex.

This has a minor rework of
https://github.com/llvm/llvm-project/commit/b39a9a94f420a25a239ae03097c255900cbd660e
which was reverted in
https://github.com/llvm/llvm-project/commit/df6ae1779fafd9984e144a27315d6dd65b32c325
becasue the llc invocation of the test was missing the argument
`-mtriple`.

See for example the failure at
https://lab.llvm.org/buildbot#builders/231/builds/7245 that reported
the following when targeting a non-aarch64 native build:

    'cortex-a55' is not a recognized processor for this target (ignoring processor)

Reviewers: jroelofs

Subscribers:

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