OSDN Git Service

[MergeFunctions] Merge small functions if possible without a thunk.
authorwhitequark <whitequark@whitequark.org>
Sun, 15 Oct 2017 12:29:09 +0000 (12:29 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 15 Oct 2017 12:29:09 +0000 (12:29 +0000)
commit99dc03a8d7128708d11433b72b549583c9c02e50
tree330d89d11a182471122fd4a1624bd7c3797517ea
parente53e8bdb9baba4e9f5ae32c50c04184780c07a0b
[MergeFunctions] Merge small functions if possible without a thunk.

This can result in significant code size savings in some cases,
e.g. an interrupt table all filled with the same assembly stub
in a certain Cortex-M BSP results in code blowup by a factor of 2.5.

Differential Revision: https://reviews.llvm.org/D34806

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315853 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/MergeFunctions.cpp
test/Transforms/MergeFunc/merge-small-unnamed-addr.ll [new file with mode: 0644]