Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LegacyPM] Call getPassName only when needed
Even when time tracing is disabled, getPassName is currently still called. This adds an avoidable virtual function call for each pass. Fetching the pass name only when required slightly improves compile-time (particularly when LLVM is built without LTO). Reviewed By: nikic, MaskRay Differential Revision: https://reviews.llvm.org/D148022
- Loading branch information