[llvm-dev] RFC: DenseMap grow() slowness

Xinliang David Li via llvm-dev llvm-dev at lists.llvm.org
Tue Mar 15 15:57:38 PDT 2016


On Tue, Mar 15, 2016 at 3:54 PM, <escha at apple.com> wrote:

>
> > On Mar 15, 2016, at 3:52 PM, Xinliang David Li <xinliangli at gmail.com>
> wrote:
> >
> > In earlyCSE case, the size of DenseMap can be determined ahead of time
>
> Only an upper bound; the actual max size is the number of CSE-able
> instructions “live” in scope at any one time (I think), so at least in
> theory it could be a gross overestimate.
>

Perhaps some heuristics can be applied to reduce the estimated size
assuming there are some correlation on average, I guess.

David


>
> —escha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160315/edb2b2bc/attachment.html>


More information about the llvm-dev mailing list