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

Nick Lewycky nlewycky at
Thu Oct 23 14:39:59 PDT 2014

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!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fmerge-functions-1.patch
Type: text/x-patch
Size: 3244 bytes
Desc: not available
URL: <>

More information about the cfe-commits mailing list