Incorporate MergeSimilarFunction patches to MergeFunction - Working outside of GSoC

Adding llvm-dev.