diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-07-19 14:48:15 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-07-19 14:48:15 +0000 |
commit | b68f7aea33fd8510e441a1a9a38f3920a9e5db0c (patch) | |
tree | ee64a8c997b00afc8ab5c464d51c6f3314516027 /lib/VMCore/Use.cpp | |
parent | e117b639737188eba48b1580fca24258ca108b0d (diff) |
precompute 20 tags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Use.cpp')
-rw-r--r-- | lib/VMCore/Use.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/VMCore/Use.cpp b/lib/VMCore/Use.cpp index c88ad16f60..fec710b394 100644 --- a/lib/VMCore/Use.cpp +++ b/lib/VMCore/Use.cpp @@ -86,11 +86,17 @@ const Use *Use::getImpliedUser() const { //===----------------------------------------------------------------------===// Use *Use::initTags(Use * const Start, Use *Stop, ptrdiff_t Done) { - while (Done < 6) { + while (Done < 20) { if (Start == Stop--) return Start; - static const PrevPtrTag tags[6] = { fullStopTag, oneDigitTag, stopTag, - oneDigitTag, oneDigitTag, stopTag }; + static const PrevPtrTag tags[20] = { fullStopTag, oneDigitTag, stopTag, + oneDigitTag, oneDigitTag, stopTag, + zeroDigitTag, oneDigitTag, oneDigitTag, + stopTag, zeroDigitTag, oneDigitTag, + zeroDigitTag, oneDigitTag, stopTag, + oneDigitTag, oneDigitTag, oneDigitTag, + oneDigitTag, stopTag + }; Stop->Prev.setFromOpaqueValue(reinterpret_cast<Use**>(tags[Done++])); Stop->Val = 0; } |