diff options
author | Rui Ueyama <ruiu@google.com> | 2015-09-20 03:11:16 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-09-20 03:11:16 +0000 |
commit | 997b357ac13f35cd414d6bc90aba800012f13163 (patch) | |
tree | c54fe8e78d03aa5d2c23cf20ed5b9d1dc3b09d36 /llvm/lib/Target/X86/X86FastISel.cpp | |
parent | af99cd41745093e753cfe59d81269d84a588fd9d (diff) | |
download | bcm5719-llvm-997b357ac13f35cd414d6bc90aba800012f13163.tar.gz bcm5719-llvm-997b357ac13f35cd414d6bc90aba800012f13163.zip |
COFF: Run InputFile::parse() in background using std::async().
Previously, InputFile::parse() was run in batch. We construct a list
of all input files and call parse() on each file using parallel_for_each.
That means we cannot start parsing files until we get a complete list
of input files, although InputFile::parse() is safe to call from anywhere.
This patch makes it asynchronous. As soon as we add a file to the symbol
table, we now start parsing the file using std::async().
This change shortens self-hosting time (650 ms) by 28 ms. It's about 4%
improvement.
llvm-svn: 248109
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
0 files changed, 0 insertions, 0 deletions