[llvm-commits] PATCH: Teach the function cloner to prune dead basic blocks

Chandler Carruth chandlerc at gmail.com
Sun Mar 25 04:25:00 PDT 2012


On Mar 25, 2012 4:09 AM, "Anton Korobeynikov" <anton at korobeynikov.info>
wrote:
>
> Hi Chandler,
>
> > After r153410, the function cloner started to fold some constants in the
> > cloned code after all of the basic blocks had been cloned into the new
> > function. As a consequence, this folding could form dead basic blocks
that
> > need to actually be pruned (rather than simply avoiding cloning them in
the
> > first place).
> Is it possible to keep somehow the old behavior? I'd expect there are
> some clients which really want to clone the function w/o any
> additional simplification.
> Won't this e.g. affect bugpoint after all?

Sorry I didn't make it more clear -- this patch and the prior patches only
impact the pruning cloner, the normal one remains the same.

>
>
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120325/3f06d353/attachment.html>


More information about the llvm-commits mailing list