diff options
author | Alina Sbirlea <asbirlea@google.com> | 2019-06-07 20:43:55 +0000 |
---|---|---|
committer | Alina Sbirlea <asbirlea@google.com> | 2019-06-07 20:43:55 +0000 |
commit | eaea538d18c1df81877850704562bea5e4284bf8 (patch) | |
tree | ccfdf10f5a0880b0d2c2392e3aa212bd8cc34083 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | c3c18f4a0dc6806dd284b3650fd1ee7ac06ee3b6 (diff) | |
download | llvm-eaea538d18c1df81877850704562bea5e4284bf8.zip llvm-eaea538d18c1df81877850704562bea5e4284bf8.tar.gz llvm-eaea538d18c1df81877850704562bea5e4284bf8.tar.bz2 |
[DomTreeUpdater] Add all insert before all delete updates to reduce compile time.
Summary:
The cleanup in D62751 introduced a compile-time regression due to the way DT updates are performed.
Add all insert edges then all delete edges in DTU to match the previous compile time.
Compile time on the test provided by @mstorsjo before and after this patch on my machine:
113.046s vs 35.649s
Repro: clang -target x86_64-w64-mingw32 -c -O3 glew-preproc.c; on https://martin.st/temp/glew-preproc.c.
Reviewers: kuhar, NutshellySima, mstorsjo
Subscribers: jlebar, mstorsjo, dmgreen, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62981
llvm-svn: 362839
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions