summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-12-05 13:07:49 +0000
committerRui Ueyama <ruiu@google.com>2013-12-05 13:07:49 +0000
commit16c025e2127aff5911d53b55931ff44d919467e7 (patch)
treeb72a3c4d567ac7f1deb7b3428a7e468cc9f86bea /clang/lib/Frontend/FrontendActions.cpp
parent4459717babd3272e0edbb1ecaa13a3d0929043f2 (diff)
downloadbcm5719-llvm-16c025e2127aff5911d53b55931ff44d919467e7.tar.gz
bcm5719-llvm-16c025e2127aff5911d53b55931ff44d919467e7.zip
[PECOFF] Handle .lib files as if they are grouped by --{start,end}-group.
Currently we do not de-duplicate library files specified by /defaultlib option. As a result, the same files are added multiple times to the input graph. In particular, some popular files, such as kernel32.lib or oldnames.lib, are added more than 10 times during linking of LLD. That makes the linker slower, as it needs to parse the same file again and again. This patch solves the issue by de-duplicating. The same file will be added only once to the input graph. This patch improved the LLD linking time from 10.5 seconds to 7.7 seconds on my 4-core Core i7 Macbook Pro. llvm-svn: 196504
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud