summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-25 22:25:23 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-25 22:25:23 +0000
commite41d7feaf55ab4ea31d0dad50b6c8df98bf30f43 (patch)
tree39714ef998448b7e1f894053433266f34b82450d /clang/lib/CodeGen/CodeGenModule.cpp
parentc9f860d1242475d7f6a7e049b65ce0a2c39092a1 (diff)
downloadbcm5719-llvm-e41d7feaf55ab4ea31d0dad50b6c8df98bf30f43.tar.gz
bcm5719-llvm-e41d7feaf55ab4ea31d0dad50b6c8df98bf30f43.zip
Optimize ModuleManager::visit() by precomputing the visitation order
and limiting ourselves to two memory allocations. 10% speedup in -fsyntax-only time for modules. With this change, we can actually see some performance different from the global module index, but it's still about 1%. llvm-svn: 173512
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud