[GlobalMerge] Take into account minsize on Global users' parents.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 4 Jun 2015 20:39:23 +0000 (20:39 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 4 Jun 2015 20:39:23 +0000 (20:39 +0000)
commit8207641251706ea808df6d2a1ea8f87b8ee04c6d
tree9b735ef006a3b1e8bb4ac9a58e4642f69cc81e53
parenta1c4da99f662b7dbee4a34a64fe5659c4d6d08f3
[GlobalMerge] Take into account minsize on Global users' parents.

Now that we can look at users, we can trivially do this: when we would
have otherwise disabled GlobalMerge (currently -O<3), we can just run
it for minsize functions, as it's usually a codesize win.

Differential Revision: http://reviews.llvm.org/D10054

llvm-svn: 239087
llvm/include/llvm/Transforms/Scalar.h
llvm/lib/CodeGen/GlobalMerge.cpp
llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
llvm/lib/Target/ARM/ARMTargetMachine.cpp
llvm/test/CodeGen/AArch64/global-merge-ignore-single-use-minsize.ll [new file with mode: 0644]