Add a new MergeFunctions pass. It finds identical functions and merges them.
authorNick Lewycky <nicholas@mxc.ca>
Sun, 2 Nov 2008 05:52:50 +0000 (05:52 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 2 Nov 2008 05:52:50 +0000 (05:52 +0000)
commit579a0246616d76bc536de0e41edf069d091604be
tree2d39570a32af93de6f9d8e9b15240f4b9eb2744a
parent8e39432ea9751917d5cef1f18f6c32382c384d58
Add a new MergeFunctions pass. It finds identical functions and merges them.

This triggers only 60 times in llvm-test (look at .llvm.bc, not .linked.rbc)
and so it probably wont be turned on by default. Also, may of those are likely
to go away when PR2973 is fixed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58557 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/LinkAllPasses.h
include/llvm/Transforms/IPO.h
lib/Transforms/IPO/MergeFunctions.cpp [new file with mode: 0644]
test/Transforms/MergeFunc/dg.exp [new file with mode: 0644]
test/Transforms/MergeFunc/phi-speculation1.ll [new file with mode: 0644]
test/Transforms/MergeFunc/phi-speculation2.ll [new file with mode: 0644]