This is an archive of the discontinued LLVM Phabricator instance.

[llvm-mca] Return the total number of cycles from method Pipeline::run().
ClosedPublic

Authored by andreadb on Nov 28 2018, 5:35 AM.

Details

Summary

If a user only cares about the overall latency, then the best/quickest way is to change method Pipeline::run() so that it returns the total number of cycles to the caller.

When the simulation pipeline is run, the number of cycles (or an error) is returned from method Pipeline::run().
The advantage is that no hardware event listener is needed for computing that latency. So, the whole process should be faster (and simpler - for that particular use case).

Diff Detail

Event Timeline

andreadb created this revision.Nov 28 2018, 5:35 AM
mattd accepted this revision.Nov 28 2018, 8:14 AM

LGTM!

This revision is now accepted and ready to land.Nov 28 2018, 8:14 AM
andreadb closed this revision.Nov 28 2018, 8:28 AM

Committed at revision 347767.