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

Anton Korobeynikov anton at korobeynikov.info
Sun Mar 25 04:05:26 PDT 2012


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?


-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-commits mailing list