diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-03 07:31:15 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-03 07:31:15 +0000 |
| commit | 796f1da4791dac2114ac8be024b7bafb376eb5fa (patch) | |
| tree | 9920505ec1283d60e57bbff0205a1e550ddd14a9 /clang/lib/CodeGen/CodeGenFunction.h | |
| parent | 83b28a2433e3c6162b310b7b1beb20aa3dea1022 (diff) | |
| download | bcm5719-llvm-796f1da4791dac2114ac8be024b7bafb376eb5fa.tar.gz bcm5719-llvm-796f1da4791dac2114ac8be024b7bafb376eb5fa.zip | |
speed up scope node processing: if the first element of a scope
entry we're about to process is obviously going to fail, don't
bother pushing a scope only to have it immediately be popped.
This avoids a lot of scope stack traffic in common cases.
Unfortunately, this requires duplicating some of the predicate
dispatch. To avoid duplicating the actual logic I pulled each
predicate out to its own static function which gets used in
both places.
llvm-svn: 97651
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions

