LLVM Opt Benchmark is an LLVM IR dataset for data-driven compiler optimization research. This repository is also used by LLVM developers to evaluate the impact of their patches on real-world applications.
Don't submit PR to add new benchmarks. You can request new open-source C/C++/Rust repos here.
Please cite this work with the following BibTex entry:
@misc{opt-benchmark,
title = {LLVM Opt Benchmark},
url = {https://github.com/dtcxzyw/llvm-opt-benchmark},
author = {Yingwei Zheng},
year = {2023},
}
Special Acknowledgement: Thank @goldsteinn for providing additional computational resources to meet the growing demand for testing!
-
Fuzzy DAG matching
Please file an issue to provide LLVM IR with a single function. I will add the
grep
label to trigger CI.Example: #1072
-
Middle-end optimization pre-commit testing
Ping me if you want to see what is affected by your PR. It is useful for reviewers to find potential performance regressions and new optimization opportunities.
For convenience, some senior middle-end maintainers are authorized to request pre-commit tests in #1312. Some basic PR editing commands are also supported by leaving a comment starts with
/
:/close
: Close the PR/reopen
: Reopen the PR/add-label labels
: Add labels (separated by comma). Available labels:reviewed
,regression
,crash
,hang
andmiscompilation
./remove-label labels
: Remove labels.
-
Codegen pre-commit testing
See also llvm-codegen-benchmark.
-
Weekly coverage report:
Currently, this repository contains the following libraries/applications: