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 | 39c06b3b231cb3d971a6825f5b998a93339af3c9 (patch) | |
| tree | d8315e0dd02c273f548b50dcf7878483f22f0dff /llvm | |
| parent | eb2528104a8a9c006491ccf4624cce618dafd474 (diff) | |
| download | bcm5719-llvm-39c06b3b231cb3d971a6825f5b998a93339af3c9.tar.gz bcm5719-llvm-39c06b3b231cb3d971a6825f5b998a93339af3c9.zip | |
precompute 20 tags
llvm-svn: 108695
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/VMCore/Use.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Use.cpp b/llvm/lib/VMCore/Use.cpp index c88ad16f60f..fec710b3945 100644 --- a/llvm/lib/VMCore/Use.cpp +++ b/llvm/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; } |

