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 | f1b7c7d476a2f30f035c527cfe8e14c6c6255f07 (patch) | |
tree | 53d8e4e8b8477c0b3a435ad13d26e87b96934a17 /lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | cfe2eab7446dedc471592fe702fefef783383171 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions