This is an archive of the discontinued LLVM Phabricator instance.

[test-suite] PGO and reference input support for SPEC
ClosedPublic

Authored by anemet on Nov 16 2015, 3:25 PM.

Details

Summary

LNT has this underused feature that lets you defined tests in python. I used this feature to implement PGO and reference input support for SPEC2000_int, SPEC2006_{int,fp}.

The module currently uses configure/make to build the benchmarks (this can obviously be changed to cmake in the long run). The tests are then directly run from python and then the output is verified.

This new method is off by default. You need to invoke lnt runtest nt with —spec-ref to enable it. Also PGO is supported with —pgo.

I still need to add RunSafely and remote support. Also some tests depend on endianness and I only added little endian support at this point.

Diff Detail

Repository
rL LLVM

Event Timeline

anemet updated this revision to Diff 40350.Nov 16 2015, 3:25 PM
anemet retitled this revision from to [test-suite] PGO and reference input support for SPEC.
anemet updated this object.
anemet added a reviewer: cmatthews.
anemet added subscribers: MatzeB, llvm-commits.
cmatthews accepted this revision.Nov 16 2015, 5:29 PM
cmatthews edited edge metadata.

LGTM!

This revision is now accepted and ready to land.Nov 16 2015, 5:29 PM
This revision was automatically updated to reflect the committed changes.