[LLVMdev] PATCH: Use size reduction -- wave2

heisenbug ggreif at gmail.com
Wed Apr 16 03:39:37 PDT 2008



On Apr 16, 12:07 pm, heisenbug <ggr... at gmail.com> wrote:
> Currently there is another annoyance, you cannot pass a dereferenced
> use_iterator to dyn_cast, you have to write dyn_cast<Foo>(I->get())
> instead of the former dyn_cast<Foo>(*I). This turns out to be an ugly
> performance bug in the current codebase (construction and destruction
> of Use
> objects without need). I am trying to come up with a syntactically
> neutral
> solution to this bug.
>

Yeah, I think
<http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-
Mon-20080414/061158.html>
fixes this.

You can disregard related changes from the patch.

After a good deal of testing I'll merge r49785 to trunk.

Cheers,

   Gabor



More information about the llvm-dev mailing list