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 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 83b28a2433e3c6162b310b7b1beb20aa3dea1022 (diff) | |
download | llvm-796f1da4791dac2114ac8be024b7bafb376eb5fa.zip llvm-796f1da4791dac2114ac8be024b7bafb376eb5fa.tar.gz llvm-796f1da4791dac2114ac8be024b7bafb376eb5fa.tar.bz2 |
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 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions