[PATCH] D20178: Fix PR26055 - LiveDebugValues is very slow
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Wed May 25 13:27:02 PDT 2016
Yeah, i honestly don't know.
It's a need way to avoid constructing a real hash, my next question would
be "is it actually demonstrably slower to compute a hash for real"?
Also, since the stuff is constant anyway, can't you just compute it at init
It's not like you have to compute it repeatedly.
On Wed, May 25, 2016 at 1:15 PM, Adrian Prantl <aprantl at apple.com> wrote:
> aprantl added inline comments.
> Comment at: lib/CodeGen/LiveDebugValues.cpp:103
> @@ +102,3 @@
> + } RegisterLoc;
> + uint64_t Hash;
> + } Loc;
> dberlin wrote:
> > Errr, do you really never use the hash and the registerloc at the same
> The hash is meant to be a convenient alternative view of the the two
> uint32_t as a single uint64_t. Now that I think of it, I wonder whether
> that is guaranteed on all imaginable architectures.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits