This is an archive of the discontinued LLVM Phabricator instance.

[SchedBoundary] Add dump method for resource usage.
ClosedPublic

Authored by fpetrogalli on Jan 10 2023, 3:33 AM.

Details

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.

Diff Detail

Event Timeline

fpetrogalli created this revision.Jan 10 2023, 3:33 AM
fpetrogalli requested review of this revision.Jan 10 2023, 3:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 10 2023, 3:33 AM
jroelofs accepted this revision.Jan 10 2023, 2:31 PM

LGTM

llvm/include/llvm/CodeGen/MachineScheduler.h
694

s/slow/slot/ ?

llvm/lib/CodeGen/MachineScheduler.cpp
2600

invert + early return?

llvm/test/CodeGen/AArch64/dump-reserved-cycles.mir
6

Probably a good idea to explicitly specify the mcpu so it's resilient to the possibility of the default changing out from under it.

This revision is now accepted and ready to land.Jan 10 2023, 2:31 PM
fpetrogalli marked 2 inline comments as done.

Address code review.

fpetrogalli marked an inline comment as done.Jan 12 2023, 4:10 AM

Rebase on main branch. NFC.

This revision was landed with ongoing or failed builds.Jan 13 2023, 1:38 AM
This revision was automatically updated to reflect the committed changes.
fpetrogalli reopened this revision.Jan 13 2023, 2:29 AM

Reopening to update with a rework after a revert of the original submission to main

This revision is now accepted and ready to land.Jan 13 2023, 2:29 AM

Add -mtriple to the invocation of llc in the test to prevent it fail on non-aarch64 machines.

See for example https://lab.llvm.org/buildbot#builders/231/builds/7245

Rebase. NFC. (Sorting my head on how properly do a recommit, apologies for the noise).

This revision was landed with ongoing or failed builds.Jan 13 2023, 2:46 AM
This revision was automatically updated to reflect the committed changes.