[llvm-commits] [llvm] r108695 - /llvm/trunk/lib/VMCore/Use.cpp
Chris Lattner
clattner at apple.com
Mon Jul 19 09:27:21 PDT 2010
On Jul 19, 2010, at 7:48 AM, Gabor Greif wrote:
> Author: ggreif
> Date: Mon Jul 19 09:48:15 2010
> New Revision: 108695
>
> URL: http://llvm.org/viewvc/llvm-project?rev=108695&view=rev
> Log:
> precompute 20 tags
Hi Gabor,
What does this do?
-Chris
>
> Modified:
> llvm/trunk/lib/VMCore/Use.cpp
>
> Modified: llvm/trunk/lib/VMCore/Use.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Use.cpp?rev=108695&r1=108694&r2=108695&view=diff
> ==============================================================================
> --- llvm/trunk/lib/VMCore/Use.cpp (original)
> +++ llvm/trunk/lib/VMCore/Use.cpp Mon Jul 19 09:48:15 2010
> @@ -86,11 +86,17 @@
> //===----------------------------------------------------------------------===//
>
> 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;
> }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list