patch: add a driver flag to turn on function merging optimization

Nick Lewycky nlewycky at
Thu Oct 23 14:47:18 PDT 2014

Sorry, I failed to "svn add" the new test and include it in the patch.
Here's an updated patch with the test in it.

On 23 October 2014 14:39, Nick Lewycky <nlewycky at> wrote:

> The attached patch adds -fmerge-functions which is in turn attached to
> PassManagerBuilder::MergeFunctions. This is provided for testing it out,
> and we can decide what we want the default to be after we have experience.
> Note that it does bad things to debug info which doesn't currently have a
> way to represent which function got called if two functions were merged.
> Please review!
> Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fmerge-functions-2.patch
Type: text/x-patch
Size: 3965 bytes
Desc: not available
URL: <>

More information about the cfe-commits mailing list